| 62 | } |
| 63 | |
| 64 | inline void WriteIoPortByte(uint16_t address, uint8_t value) |
| 65 | { |
| 66 | if(!macUSPCIO_driver_connection) |
| 67 | { |
| 68 | return; |
| 69 | } |
| 70 | |
| 71 | uint32_t outputCount = 1; |
| 72 | uint64_t output = 0; |
| 73 | uint64_t input[2] = {address, value}; |
| 74 | |
| 75 | IOConnectCallScalarMethod(macUSPCIO_driver_connection, 1, input, 2, &output, &outputCount); |
| 76 | } |
| 77 | |
| 78 | inline uint8_t ReadConfigPortByte(uint16_t address) { |
| 79 | if(!macUSPCIO_driver_connection) |
no outgoing calls
no test coverage detected