|
@@ -71,7 +71,7 @@ static inline __attribute__ (( always_inline )) int
|
71
|
71
|
pcidirect_read_config_dword ( struct pci_device *pci, unsigned int where,
|
72
|
72
|
uint32_t *value ) {
|
73
|
73
|
pcidirect_prepare ( pci, where );
|
74
|
|
- *value = inl ( PCIDIRECT_CONFIG_DATA + where );
|
|
74
|
+ *value = inl ( PCIDIRECT_CONFIG_DATA );
|
75
|
75
|
return 0;
|
76
|
76
|
}
|
77
|
77
|
|
|
@@ -103,7 +103,7 @@ static inline __attribute__ (( always_inline )) int
|
103
|
103
|
pcidirect_write_config_word ( struct pci_device *pci, unsigned int where,
|
104
|
104
|
uint16_t value ) {
|
105
|
105
|
pcidirect_prepare ( pci, where );
|
106
|
|
- outb ( value, PCIDIRECT_CONFIG_DATA + ( where & 2 ) );
|
|
106
|
+ outw ( value, PCIDIRECT_CONFIG_DATA + ( where & 2 ) );
|
107
|
107
|
return 0;
|
108
|
108
|
}
|
109
|
109
|
|
|
@@ -119,7 +119,7 @@ static inline __attribute__ (( always_inline )) int
|
119
|
119
|
pcidirect_write_config_dword ( struct pci_device *pci, unsigned int where,
|
120
|
120
|
uint32_t value ) {
|
121
|
121
|
pcidirect_prepare ( pci, where );
|
122
|
|
- outb ( value, PCIDIRECT_CONFIG_DATA + where );
|
|
122
|
+ outl ( value, PCIDIRECT_CONFIG_DATA );
|
123
|
123
|
return 0;
|
124
|
124
|
}
|
125
|
125
|
|