Code: Select all
ioportmask_t palReadBus(IOBus *bus);
void palWriteBus(IOBus *bus, ioportmask_t bits);
void palSetBusMode(IOBus *bus, iomode_t mode);
should be changed to:
Code: Select all
ioportmask_t palReadBus(const IOBus *bus);
void palWriteBus(const IOBus *bus, ioportmask_t bits);
void palSetBusMode(const IOBus *bus, iomode_t mode);
This is because it is currently not possible to declare an IOBus structure const (thus avoiding it occupying RAM) without casting away const when passing it to these functions.