diff options
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index ff1024eadbd1..eaebd4fcb857 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -644,7 +644,7 @@ typedef struct ide_drive_s { | |||
644 | ((1<<ide_pci)|(1<<ide_cmd646)|(1<<ide_ali14xx)) | 644 | ((1<<ide_pci)|(1<<ide_cmd646)|(1<<ide_ali14xx)) |
645 | #define IDE_CHIPSET_IS_PCI(c) ((IDE_CHIPSET_PCI_MASK >> (c)) & 1) | 645 | #define IDE_CHIPSET_IS_PCI(c) ((IDE_CHIPSET_PCI_MASK >> (c)) & 1) |
646 | 646 | ||
647 | struct ide_pci_device_s; | 647 | struct ide_port_info; |
648 | 648 | ||
649 | typedef struct hwif_s { | 649 | typedef struct hwif_s { |
650 | struct hwif_s *next; /* for linked-list in ide_hwgroup_t */ | 650 | struct hwif_s *next; /* for linked-list in ide_hwgroup_t */ |
@@ -680,7 +680,7 @@ typedef struct hwif_s { | |||
680 | hwif_chipset_t chipset; /* sub-module for tuning.. */ | 680 | hwif_chipset_t chipset; /* sub-module for tuning.. */ |
681 | 681 | ||
682 | struct pci_dev *pci_dev; /* for pci chipsets */ | 682 | struct pci_dev *pci_dev; /* for pci chipsets */ |
683 | struct ide_pci_device_s *cds; /* chipset device struct */ | 683 | struct ide_port_info *cds; /* chipset device struct */ |
684 | 684 | ||
685 | ide_ack_intr_t *ack_intr; | 685 | ide_ack_intr_t *ack_intr; |
686 | 686 | ||
@@ -831,8 +831,6 @@ typedef struct hwgroup_s { | |||
831 | 831 | ||
832 | /* for pci chipsets */ | 832 | /* for pci chipsets */ |
833 | struct pci_dev *pci_dev; | 833 | struct pci_dev *pci_dev; |
834 | /* chipset device struct */ | ||
835 | struct ide_pci_device_s *cds; | ||
836 | 834 | ||
837 | /* current request */ | 835 | /* current request */ |
838 | struct request *rq; | 836 | struct request *rq; |
@@ -1152,8 +1150,8 @@ extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *o | |||
1152 | #define ide_pci_register_driver(d) pci_register_driver(d) | 1150 | #define ide_pci_register_driver(d) pci_register_driver(d) |
1153 | #endif | 1151 | #endif |
1154 | 1152 | ||
1155 | void ide_pci_setup_ports(struct pci_dev *, struct ide_pci_device_s *, int, u8 *); | 1153 | void ide_pci_setup_ports(struct pci_dev *, struct ide_port_info *, int, u8 *); |
1156 | extern void ide_setup_pci_noise (struct pci_dev *dev, struct ide_pci_device_s *d); | 1154 | void ide_setup_pci_noise(struct pci_dev *, struct ide_port_info *); |
1157 | 1155 | ||
1158 | extern void default_hwif_iops(ide_hwif_t *); | 1156 | extern void default_hwif_iops(ide_hwif_t *); |
1159 | extern void default_hwif_mmiops(ide_hwif_t *); | 1157 | extern void default_hwif_mmiops(ide_hwif_t *); |
@@ -1229,7 +1227,7 @@ enum { | |||
1229 | # define IDE_HFLAG_OFF_BOARD 0 | 1227 | # define IDE_HFLAG_OFF_BOARD 0 |
1230 | #endif | 1228 | #endif |
1231 | 1229 | ||
1232 | typedef struct ide_pci_device_s { | 1230 | struct ide_port_info { |
1233 | char *name; | 1231 | char *name; |
1234 | unsigned int (*init_chipset)(struct pci_dev *, const char *); | 1232 | unsigned int (*init_chipset)(struct pci_dev *, const char *); |
1235 | void (*init_iops)(ide_hwif_t *); | 1233 | void (*init_iops)(ide_hwif_t *); |
@@ -1244,10 +1242,10 @@ typedef struct ide_pci_device_s { | |||
1244 | u8 swdma_mask; | 1242 | u8 swdma_mask; |
1245 | u8 mwdma_mask; | 1243 | u8 mwdma_mask; |
1246 | u8 udma_mask; | 1244 | u8 udma_mask; |
1247 | } ide_pci_device_t; | 1245 | }; |
1248 | 1246 | ||
1249 | extern int ide_setup_pci_device(struct pci_dev *, ide_pci_device_t *); | 1247 | int ide_setup_pci_device(struct pci_dev *, struct ide_port_info *); |
1250 | extern int ide_setup_pci_devices(struct pci_dev *, struct pci_dev *, ide_pci_device_t *); | 1248 | int ide_setup_pci_devices(struct pci_dev *, struct pci_dev *, struct ide_port_info *); |
1251 | 1249 | ||
1252 | void ide_map_sg(ide_drive_t *, struct request *); | 1250 | void ide_map_sg(ide_drive_t *, struct request *); |
1253 | void ide_init_sg_cmd(ide_drive_t *, struct request *); | 1251 | void ide_init_sg_cmd(ide_drive_t *, struct request *); |