X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=UDI%2Fdrivers%2Fuart_16c550%2Fuart16c550.c;h=510bc47202e8b3a149a0e9d199d956fe45e407c4;hb=4239ff15de51d3eb299bbebf4f63077edcc0d2db;hp=cfe77707be24bda6c93a43646e41133b2f2e060e;hpb=818e35a1e64d6761ae5684a3a4b4958566a71017;p=tpg%2Facess2.git diff --git a/UDI/drivers/uart_16c550/uart16c550.c b/UDI/drivers/uart_16c550/uart16c550.c index cfe77707..510bc472 100644 --- a/UDI/drivers/uart_16c550/uart16c550.c +++ b/UDI/drivers/uart_16c550/uart16c550.c @@ -5,8 +5,12 @@ * uart16c550.c * - UDI initialisation */ +#define UDI_VERSION 0x101 +#define UDI_PCI_VERSION 0x101 +#define UDI_PHYSIO_VERSION 0x101 #include #include +#include #include "uart16c550_common.h" #include "uart16c550_pio.h" @@ -100,7 +104,7 @@ void uart_bus_dev_bus_bind_ack(udi_bus_bind_cb_t *cb, void uart_bus_dev_bind__pio_map(udi_cb_t *gcb, udi_pio_handle_t new_pio_handle) { rdata_t *rdata = gcb->context; - if( rdata->init.pio_index != -1 ) + if( rdata->init.pio_index != (udi_index_t)-1 ) { rdata->pio_handles[rdata->init.pio_index] = new_pio_handle; }