X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fata.h;h=cfc61088ffdbb7631453e0b52de72a22e40b9658;hb=2dcbf7fafc15acb62adbceaae7ca3a6e3a06f0e3;hp=71624bbb3513a55ed3ca16f0c8e7382e290b9def;hpb=575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d;p=seabios.git diff --git a/src/ata.h b/src/ata.h index 71624bb..cfc6108 100644 --- a/src/ata.h +++ b/src/ata.h @@ -3,17 +3,27 @@ #include "types.h" // u8 #include "config.h" // CONFIG_MAX_ATA_INTERFACES +#include "disk.h" // struct drive_s struct ata_channel_s { u16 iobase1; u16 iobase2; u16 iomaster; u8 irq; + u8 chanid; int pci_bdf; + struct pci_device *pci_tmp; +}; + +struct atadrive_s { + struct drive_s drive; + struct ata_channel_s *chan_gf; + u8 slave; }; // ata.c -extern struct ata_channel_s ATA_channels[CONFIG_MAX_ATA_INTERFACES]; +char *ata_extract_model(char *model, u32 size, u16 *buffer); +int ata_extract_version(u16 *buffer); int cdrom_read(struct disk_op_s *op); int atapi_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize); void ata_setup(void);