Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | #include <ll/i386/hw-data.h> |
2 | #include <drivers/llpci.h> |
||
3 | #include <drivers/linuxpci.h> |
||
4 | |||
5 | int pci_read_config_byte(struct pci_dev *dev, BYTE where, BYTE *val) |
||
6 | { |
||
7 | return pcibios_read_config_byte(dev->bus->number, dev->devfn, where, val); |
||
8 | } |
||
9 | |||
10 | int pci_read_config_word(struct pci_dev *dev, BYTE where, WORD *val) |
||
11 | { |
||
12 | return pcibios_read_config_word(dev->bus->number, dev->devfn, where, val); |
||
13 | } |
||
14 | |||
15 | int pci_read_config_dword(struct pci_dev *dev, BYTE where, DWORD *val) |
||
16 | { |
||
17 | return pcibios_read_config_dword(dev->bus->number, dev->devfn, where, val); |
||
18 | } |
||
19 | |||
20 | int pci_write_config_byte(struct pci_dev *dev, BYTE where, BYTE val) |
||
21 | { |
||
22 | return pcibios_write_config_byte(dev->bus->number, dev->devfn, where, val); |
||
23 | } |
||
24 | |||
25 | int pci_write_config_word(struct pci_dev *dev, BYTE where, WORD val) |
||
26 | { |
||
27 | return pcibios_write_config_word(dev->bus->number, dev->devfn, where, val); |
||
28 | } |
||
29 | |||
30 | int pci_write_config_dword(struct pci_dev *dev, BYTE where, DWORD val) |
||
31 | { |
||
32 | return pcibios_write_config_dword(dev->bus->number, dev->devfn, where, val); |
||
33 | } |