| 91 | } |
| 92 | |
| 93 | inline uint16_t ReadConfigPortWord(uint16_t address) |
| 94 | { |
| 95 | if(!macUSPCIO_driver_connection) |
| 96 | { |
| 97 | return 0; |
| 98 | } |
| 99 | |
| 100 | uint32_t outputCount = 1; |
| 101 | uint64_t output = 0; |
| 102 | uint64_t input[1] = {address}; |
| 103 | |
| 104 | IOConnectCallScalarMethod(macUSPCIO_driver_connection, 3, input, 1, &output, &outputCount); |
| 105 | |
| 106 | return (uint16_t)output; |
| 107 | } |
| 108 | |
| 109 | |
| 110 | #endif /* macUSPCIOAccess_h */ |
no outgoing calls
no test coverage detected