23 #include "pedigree/kernel/processor/MemoryRegion.h" 24 #include "pedigree/kernel/processor/types.h" 29 I2C() : m_MmioBase(
"I2C")
36 static I2C &instance(
size_t n)
41 void initialise(uintptr_t baseAddr);
43 bool transmit(uint8_t addr, uintptr_t buffer,
size_t len);
44 bool receive(uint8_t addr, uintptr_t buffer,
size_t maxlen);
46 bool write(uint8_t addr, uint8_t reg, uint8_t data);
47 uint8_t read(uint8_t addr, uint8_t reg);
50 static I2C m_Instance[3];
73 I2C_SYSTEST = 0x3C / 2,
74 I2C_BUFSTAT = 0x40 / 2,
79 I2C_SBLOCK = 0x54 / 2,
Special memory entity in the kernel's virtual address space.