From: John Hodge Date: Mon, 24 Nov 2014 07:32:58 +0000 (+0800) Subject: UDI/GFX - fiddling X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=commitdiff_plain;h=5b5a9511bc053ad45b551a20874022f8561da9a5 UDI/GFX - fiddling --- diff --git a/KernelLand/Modules/Interfaces/UDI/trans/bus_pci.c b/KernelLand/Modules/Interfaces/UDI/trans/bus_pci.c index 651329d5..99096555 100644 --- a/KernelLand/Modules/Interfaces/UDI/trans/bus_pci.c +++ b/KernelLand/Modules/Interfaces/UDI/trans/bus_pci.c @@ -6,6 +6,8 @@ * - PCI Bus Driver */ #define DEBUG 0 +#define UDI_VERSION 0x101 +#define UDI_PHYSIO_VERSION 0x101 #define UDI_PCI_VERSION 0x101 #include #include diff --git a/KernelLand/Modules/Interfaces/UDI/trans/gfx.c b/KernelLand/Modules/Interfaces/UDI/trans/gfx.c index 5530e7f3..73efc103 100644 --- a/KernelLand/Modules/Interfaces/UDI/trans/gfx.c +++ b/KernelLand/Modules/Interfaces/UDI/trans/gfx.c @@ -70,7 +70,7 @@ void acessgfx_channel_event_ind$bound(udi_gfx_bind_cb_t *cb) rdata_t *rdata = UDI_GCB(bind_cb)->context; // request metalanguage-level bind - udi_gfx_bind_req(bind_cb) + udi_gfx_bind_req(bind_cb); // Continued in acessgfx_bind_ack } diff --git a/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic b/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic index d7364eac..796228a1 100644 --- a/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic +++ b/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic @@ -45,12 +45,11 @@ void usage_ind(udi_usage_cb_t *cb, udi_ubit8_t resource_level) { state_cb->subsystem = i; state_cb->attribute = UDI_GFX_PROP_PIXELFORMAT; - [pixfmt]:[NAK,status] = udi_gfx_get_engine_req(state_cb); - if(NAK) { + [pixfmt] = @TRY_NAK[status] udi_gfx_get_engine_req(state_cb) + { // Shit to do if NAK happens return ; - } - else { + // break PIXFMT_NONE; } // TODO: Annotate udi_gfx_state_cb_t to note values are kept? diff --git a/UDI/drivers/gfx_bochs/bochsga_common.h b/UDI/drivers/gfx_bochs/bochsga_common.h index 3b3a5db8..5d40cfac 100644 --- a/UDI/drivers/gfx_bochs/bochsga_common.h +++ b/UDI/drivers/gfx_bochs/bochsga_common.h @@ -25,6 +25,7 @@ #define BOCHSGA_CB_GFX_COMMAND 5 #define BOCHSGA_MSGNUM_PROPUNK 1001 +#define BOCHSGA_MSGNUM_BUFUNK 1002 /** * \} */ diff --git a/UDI/drivers/gfx_bochs/bochsga_core.c b/UDI/drivers/gfx_bochs/bochsga_core.c index 8f6dae8d..458f8933 100644 --- a/UDI/drivers/gfx_bochs/bochsga_core.c +++ b/UDI/drivers/gfx_bochs/bochsga_core.c @@ -382,6 +382,7 @@ void bochsga_gfx_engine_command_req(udi_gfx_command_cb_t *cb) } void bochsga_gfx_buffer_info_req(udi_gfx_buffer_info_cb_t *cb) { + udi_cb_t *gcb = UDI_GCB(cb); switch(cb->buffer_index) { case 0: