#ifndef _IDE_SFF8038I_H_
#define _IDE_SFF8038I_H_
typedef struct sff_busmaster_t {
        uint8_t command;
        uint8_t status;
        uint32_t ptr, ptr_cur;
        int count;
        uint32_t addr;
        int eot;
} sff_busmaster_t;

uint8_t sff_bus_master_read(uint16_t port, void *p);
void sff_bus_master_write(uint16_t port, uint8_t val, void *p);
void sff_bus_master_init(sff_busmaster_t *busmaster);

#endif /* _IDE_SFF8038I_H_ */
