UDI/GFX - fiddling
authorJohn Hodge <[email protected]>
Mon, 24 Nov 2014 07:32:58 +0000 (15:32 +0800)
committerJohn Hodge <[email protected]>
Mon, 24 Nov 2014 07:32:58 +0000 (15:32 +0800)
KernelLand/Modules/Interfaces/UDI/trans/bus_pci.c
KernelLand/Modules/Interfaces/UDI/trans/gfx.c
KernelLand/Modules/Interfaces/UDI/trans/gfx.udic
UDI/drivers/gfx_bochs/bochsga_common.h
UDI/drivers/gfx_bochs/bochsga_core.c

index 651329d..9909655 100644 (file)
@@ -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 <udi.h>
 #include <udi_physio.h>
index 5530e7f..73efc10 100644 (file)
@@ -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
 }
 
index d7364ea..796228a 100644 (file)
@@ -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?
index 3b3a5db..5d40cfa 100644 (file)
@@ -25,6 +25,7 @@
 #define BOCHSGA_CB_GFX_COMMAND 5
 
 #define BOCHSGA_MSGNUM_PROPUNK 1001
+#define BOCHSGA_MSGNUM_BUFUNK  1002
 /**
  * \}
  */
index 8f6dae8..458f893 100644 (file)
@@ -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:

UCC git Repository :: git.ucc.asn.au