* - 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>
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
}
{
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?
#define BOCHSGA_CB_GFX_COMMAND 5
#define BOCHSGA_MSGNUM_PROPUNK 1001
+#define BOCHSGA_MSGNUM_BUFUNK 1002
/**
* \}
*/
}
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: