PCI: expose BAR sizes
This commit is contained in:
@@ -171,6 +171,14 @@
|
||||
#define BUSC_PCI_DEL_ACL (BUSC_RQ_BASE + 18) /* Delete the ACL of a
|
||||
* driver
|
||||
*/
|
||||
#define BUSC_PCI_GET_BAR (BUSC_RQ_BASE + 19) /* Get Base Address
|
||||
* Register properties
|
||||
*/
|
||||
#define BUSC_PGB_DEVIND m2_i1 /* device index */
|
||||
#define BUSC_PGB_PORT m2_i2 /* port (BAR offset) */
|
||||
#define BUSC_PGB_BASE m2_l1 /* BAR base address */
|
||||
#define BUSC_PGB_SIZE m2_l2 /* BAR size */
|
||||
#define BUSC_PGB_IOFLAG m2_i1 /* I/O space? */
|
||||
#define IOMMU_MAP (BUSC_RQ_BASE + 32) /* Ask IOMMU to map
|
||||
* a segment of memory
|
||||
*/
|
||||
|
||||
@@ -250,6 +250,8 @@ _PROTOTYPE( char *pci_dev_name, (u16_t vid, u16_t did) );
|
||||
_PROTOTYPE( char *pci_slot_name, (int devind) );
|
||||
_PROTOTYPE( int pci_set_acl, (struct rs_pci *rs_pci) );
|
||||
_PROTOTYPE( int pci_del_acl, (endpoint_t proc_ep) );
|
||||
_PROTOTYPE( int pci_get_bar, (int devind, int port, u32_t *base,
|
||||
u32_t *size, int *ioflag) );
|
||||
|
||||
/* Profiling. */
|
||||
_PROTOTYPE( int sys_sprof, (int action, int size, int freq,
|
||||
|
||||
Reference in New Issue
Block a user