diff options
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_pci.c')
| -rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_pci.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_pci.c b/drivers/scsi/aic7xxx/aic7xxx_pci.c index 56848f41e4f..c07cb6eebb0 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_pci.c +++ b/drivers/scsi/aic7xxx/aic7xxx_pci.c | |||
| @@ -168,8 +168,7 @@ static ahc_device_setup_t ahc_aha394XX_setup; | |||
| 168 | static ahc_device_setup_t ahc_aha494XX_setup; | 168 | static ahc_device_setup_t ahc_aha494XX_setup; |
| 169 | static ahc_device_setup_t ahc_aha398XX_setup; | 169 | static ahc_device_setup_t ahc_aha398XX_setup; |
| 170 | 170 | ||
| 171 | static struct ahc_pci_identity ahc_pci_ident_table [] = | 171 | static const struct ahc_pci_identity ahc_pci_ident_table[] = { |
| 172 | { | ||
| 173 | /* aic7850 based controllers */ | 172 | /* aic7850 based controllers */ |
| 174 | { | 173 | { |
| 175 | ID_AHA_2902_04_10_15_20C_30C, | 174 | ID_AHA_2902_04_10_15_20C_30C, |
| @@ -668,7 +667,7 @@ ahc_9005_subdevinfo_valid(uint16_t device, uint16_t vendor, | |||
| 668 | return (result); | 667 | return (result); |
| 669 | } | 668 | } |
| 670 | 669 | ||
| 671 | struct ahc_pci_identity * | 670 | const struct ahc_pci_identity * |
| 672 | ahc_find_pci_device(ahc_dev_softc_t pci) | 671 | ahc_find_pci_device(ahc_dev_softc_t pci) |
| 673 | { | 672 | { |
| 674 | uint64_t full_id; | 673 | uint64_t full_id; |
| @@ -676,7 +675,7 @@ ahc_find_pci_device(ahc_dev_softc_t pci) | |||
| 676 | uint16_t vendor; | 675 | uint16_t vendor; |
| 677 | uint16_t subdevice; | 676 | uint16_t subdevice; |
| 678 | uint16_t subvendor; | 677 | uint16_t subvendor; |
| 679 | struct ahc_pci_identity *entry; | 678 | const struct ahc_pci_identity *entry; |
| 680 | u_int i; | 679 | u_int i; |
| 681 | 680 | ||
| 682 | vendor = ahc_pci_read_config(pci, PCIR_DEVVENDOR, /*bytes*/2); | 681 | vendor = ahc_pci_read_config(pci, PCIR_DEVVENDOR, /*bytes*/2); |
| @@ -710,7 +709,7 @@ ahc_find_pci_device(ahc_dev_softc_t pci) | |||
| 710 | } | 709 | } |
| 711 | 710 | ||
| 712 | int | 711 | int |
| 713 | ahc_pci_config(struct ahc_softc *ahc, struct ahc_pci_identity *entry) | 712 | ahc_pci_config(struct ahc_softc *ahc, const struct ahc_pci_identity *entry) |
| 714 | { | 713 | { |
| 715 | u_int command; | 714 | u_int command; |
| 716 | u_int our_id; | 715 | u_int our_id; |
