feat: started pci driver structure and ide driver structure
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
#define PORT_PS2_STATUS 0x64
|
||||
#define PORT_PS2_COMMAND 0x64
|
||||
|
||||
// https://wiki.osdev.org/PCI
|
||||
#define PORT_PCI_CONFIG_ADDRESS (0xCF8)
|
||||
#define PORT_PCI_CONFIG_DATA (0xCFC)
|
||||
|
||||
unsigned char port_byte_in(unsigned short port);
|
||||
|
||||
void port_byte_out(unsigned short port, unsigned char data);
|
||||
@@ -48,4 +52,8 @@ unsigned short port_word_in(unsigned short port);
|
||||
|
||||
void port_word_out(unsigned short port, unsigned short data);
|
||||
|
||||
unsigned int port_double_word_in(unsigned int port);
|
||||
|
||||
void port_double_word_out(unsigned short port, unsigned int data);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user