Rev 2997 | Rev 3764 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2997 | Rev 3031 | ||
---|---|---|---|
Line 674... | Line 674... | ||
674 | region->start = res->start; |
674 | region->start = res->start; |
675 | region->end = res->end; |
675 | region->end = res->end; |
676 | } |
676 | } |
677 | 677 | ||
Line 678... | Line -... | ||
678 | static inline int pci_read_config_dword(struct pci_dev *dev, int where, |
- | |
679 | u32 *val) |
- | |
680 | { |
- | |
681 | *val = PciRead32(dev->busnr, dev->devfn, where); |
- | |
682 | return 1; |
- | |
683 | } |
- | |
684 | - | ||
685 | static inline int pci_write_config_dword(struct pci_dev *dev, int where, |
- | |
686 | u32 val) |
- | |
687 | { |
- | |
688 | PciWrite32(dev->busnr, dev->devfn, where, val); |
- | |
689 | return 1; |
- | |
690 | } |
- | |
691 | - | ||
692 | static inline int pci_read_config_word(struct pci_dev *dev, int where, |
- | |
693 | u16 *val) |
- | |
694 | { |
- | |
695 | *val = PciRead16(dev->busnr, dev->devfn, where); |
- | |
696 | return 1; |
- | |
697 | } |
- | |
698 | - | ||
699 | static inline int pci_write_config_word(struct pci_dev *dev, int where, |
- | |
700 | u16 val) |
- | |
701 | { |
- | |
702 | PciWrite16(dev->busnr, dev->devfn, where, val); |
- | |
703 | return 1; |
- | |
704 | } |
- | |
705 | - | ||
Line 706... | Line 678... | ||
706 | 678 | ||
707 | int pci_enable_rom(struct pci_dev *pdev) |
679 | int pci_enable_rom(struct pci_dev *pdev) |
708 | { |
680 | { |
709 | struct resource *res = pdev->resource + PCI_ROM_RESOURCE; |
681 | struct resource *res = pdev->resource + PCI_ROM_RESOURCE; |