Advanced Operating Systems COMP9242 2004/S2 |
UNSW |
Printer-Friendly
Version
|
GT PCI LibraryThe GT library provides access to the GT chip's PCI functionality. It allows you to access the configuration registers and also handles demultiplexing interrupts. You shouldn't need to directly use libgt, the provided code should take care of it. gt_init
MethodsFor various reasons (this code is used in other projects), rather than directly calling GT functions, they should all be accessed through a function pointer table. This is like invoking methods on an object in object-oriented programming languages. conf_write_<n>
There are versions of this function for n = 8, 16, or 32. This function will write a value to a specific PCI configuration register. conf_read_<n>
There are versions of this function for n = 8, 16, or 32. This function will read a value to a specific PCI configuration register. pci_iospace_map
This function will map a section of PCI memory into the address space and provide a handle to it. pci_register_interrupt
This function registers a handler for a given PCI interrupt. Last modified: 29 Jul 2004. |