X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=UDI%2Fdrivers%2Fuart_16c550%2Fuart16c550.c;h=510bc47202e8b3a149a0e9d199d956fe45e407c4;hb=230612b2efeeb769f1d96193ec01b10bd36d9873;hp=211dfd7d0f31356bcc0279bab4968251ff8b36cc;hpb=495b0190128abcb2a282331574b59ed2f0f59ee2;p=tpg%2Facess2.git diff --git a/UDI/drivers/uart_16c550/uart16c550.c b/UDI/drivers/uart_16c550/uart16c550.c index 211dfd7d..510bc472 100644 --- a/UDI/drivers/uart_16c550/uart16c550.c +++ b/UDI/drivers/uart_16c550/uart16c550.c @@ -6,8 +6,11 @@ * - 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" @@ -101,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; }