Ignore:
Timestamp:
Sep 11, 2022, 3:09:04 AM (3 years ago)
Author:
Paul Smedley
Message:

Code cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/pci.h

    r730 r732  
    4343#define  PCI_COMMAND_SERR 0x100 /* Enable SERR */
    4444#define  PCI_COMMAND_FAST_BACK  0x200 /* Enable back-to-back writes */
     45#define  PCI_COMMAND_INTX_DISABLE 0x400 /* INTx Emulation Disable */
    4546
    4647#define PCI_STATUS    0x06  /* 16 bits */
     
    363364  struct resource dma_resource[DEVICE_COUNT_DMA];
    364365  struct resource irq_resource[DEVICE_COUNT_IRQ];
     366        unsigned int    is_managed:1;
    365367
    366368  char    name[48]; /* Device name */
     
    692694}
    693695
    694 /* pci_intx() wrapper */
    695 #define pci_intx(pci,x)
    696 
    697696/* MSI */
    698697extern int snd_pci_enable_msi(struct pci_dev *dev);
     
    784783#define pcim_iomap pci_iomap
    785784int pcim_iomap_regions(struct pci_dev *pdev, int mask, const char *name);
     785
     786static inline int pci_is_managed(struct pci_dev *pdev)
     787{
     788        return pdev->is_managed;
     789}
     790void pci_intx(struct pci_dev *pdev, int enable);
     791
    786792#endif /* LINUX_PCI_H */
Note: See TracChangeset for help on using the changeset viewer.