#ifdef PCI #if (ZPCI_NR_DEVICES > ZPCI_DOMAIN_BITMAP_SIZE) # error ZPCI_NR_DEVICES can not be bigger than ZPCI_DOMAIN_BITMAP_SIZE #endif #endif/* PCI */
/* Private data per function */ struct zpci_dev { struct zpci_bus *zbus; struct list_head entry; /* list of all zpci_devices, needed for hotplug, etc. */ struct list_head iommu_list; struct kref kref; struct rcu_head rcu; struct hotplug_slot hotplug_slot;
struct mutex state_lock; /* protect state changes */ enum zpci_state state;
u32 fid; /* function ID, used by sclp */
u32 fh; /* function handle, used by insn's */
u32 gisa; /* GISA designation for passthrough */
u16 vfn; /* virtual function number */
u16 pchid; /* physical channel ID */
u16 maxstbl; /* Maximum store block size */
u16 rid; /* RID as supplied by firmware */
u16 tid; /* Topology for which RID is valid */
u8 pfgid; /* function group ID */
u8 pft; /* pci function type */
u8 port;
u8 fidparm;
u8 dtsm; /* Supported DT mask */
u8 rid_available : 1;
u8 has_hp_slot : 1;
u8 has_resources : 1;
u8 is_physfn : 1;
u8 util_str_avail : 1;
u8 tid_avail : 1;
u8 rtr_avail : 1; /* Relaxed translation allowed */ unsignedint devfn; /* DEVFN part of the RID*/
u8 pfip[CLP_PFIP_NR_SEGMENTS]; /* pci function internal path */
u32 uid; /* user defined id */
u8 util_str[CLP_UTIL_STR_LEN]; /* utility string */
/* IRQ stuff */
u64 msi_addr; /* MSI address */ unsignedint max_msi; /* maximum number of MSI's */ unsignedint msi_first_bit; unsignedint msi_nr_irqs; struct airq_iv *aibv; /* adapter interrupt bit vector */ unsignedlong aisb; /* number of the summary bit */
/* DMA stuff */ unsignedlong *dma_table; int tlb_refresh;
/* DMA */ int zpci_dma_init(void); void zpci_dma_exit(void); int zpci_dma_init_device(struct zpci_dev *zdev); int zpci_dma_exit_device(struct zpci_dev *zdev);
/* IRQ */ int __init zpci_irq_init(void); void __init zpci_irq_exit(void);
/* FMB */ int zpci_fmb_enable_device(struct zpci_dev *); int zpci_fmb_disable_device(struct zpci_dev *);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.