18#include <drivers/rtl8139.h>
26extern cstring display_adapter_name;
27extern cstring GPUName[1];
28extern string using_graphics_card;
29extern int64* graphics_base_Address;
30extern int total_devices;
33#define PCI_CONFIG_ADDRESS 0xCF8
34#define PCI_CONFIG_DATA 0xCFC
36typedef void (*pci_probe_fn)(uint8_t bus, uint8_t slot, uint8_t function);
86int16
getClassId(int16 bus, int16 device, int16 function);
97int8 getProgIF(int16 bus, int16 device, int16 function);
115void pci_config_write_dword(int8 bus, int8 slot, int8 func, int8 offset, uint32_t value);
Header definitions and structures for the AHCI Driver.
This is a basic header files with FrostWing specific short forms and basically a good for life header...
The headers files for E9 hack.
Contains all the print functions.
Header file for Hardware Abstraction Layer -> Source from GoGX OS.
Interrupts handler header.
int16 getDeviceID(int16 bus, int16 device, int16 function)
Gets the Device ID from PCI.
int32 pci_config_read_dword(int8 bus, int8 slot, int8 func, int8 offset)
Function to read a 32-bit value from the PCI configuration space.
int16 getVendorID(int16 bus, int16 device, int16 function)
Gets the Vendor ID from PCI.
void probe_pci()
Scans (Probes) PCI Devices.
int16 getSubClassId(int16 bus, int16 device, int16 function)
Gets the Sub-class ID from PCI.
int32 get_ahci_bar_address(int8 bus, int slot, int func, int bar_num)
Gets the AHCI bar address.
int16 pci_read_word(int16 bus, int16 slot, int16 func, int16 offset)
Read a 16-bit value from a PCI configuration register.
int16 getClassId(int16 bus, int16 device, int16 function)
Gets the Class ID from PCI.
The list of all officially recognized devices.