X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FInterfaces%2FUDI%2Fudi_lib%2Fphysio%2Fpio.c;h=dc45d2568a1f4e5c41c8f0ed574a6bb1f3bb6420;hb=0507e8c0c4e9d01a74d62ea79c8f6e6ab6b2fe28;hp=f0428fc7b0004c32aad0c7aebf07233151c4e7d2;hpb=bf4936e107e62b9c03e8cbf78395ef462e50fb47;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Interfaces/UDI/udi_lib/physio/pio.c b/KernelLand/Modules/Interfaces/UDI/udi_lib/physio/pio.c index f0428fc7..dc45d256 100644 --- a/KernelLand/Modules/Interfaces/UDI/udi_lib/physio/pio.c +++ b/KernelLand/Modules/Interfaces/UDI/udi_lib/physio/pio.c @@ -2,7 +2,7 @@ * \file udi_lib/physio/pio.c * \author John Hodge (thePowersGang) */ -#define DEBUG 1 +#define DEBUG 0 #include #include #include @@ -479,6 +479,7 @@ void udi_pio_trans(udi_pio_trans_call_t *callback, udi_cb_t *gcb, _operation_and(tran_size, reg, ®isters[operand]); break; case UDI_PIO_AND_IMM: + LOG("AND_IMM R%i &= 0x%x", reg_num, operand); tmpval.words[0] = operand; _zero_upper(UDI_PIO_2BYTE, &tmpval); _operation_and(tran_size, reg, &tmpval); @@ -487,6 +488,7 @@ void udi_pio_trans(udi_pio_trans_call_t *callback, udi_cb_t *gcb, _operation_or(tran_size, reg, ®isters[operand]); break; case UDI_PIO_OR_IMM: + LOG("OR_IMM R%i |= 0x%x", reg_num, operand); tmpval.words[0] = operand; _zero_upper(UDI_PIO_4BYTE, &tmpval); _operation_or(tran_size, reg, &tmpval); @@ -622,10 +624,10 @@ void udi_pio_trans(udi_pio_trans_call_t *callback, udi_cb_t *gcb, ops); } end: - callback(gcb, NULL, UDI_OK, ret_status); + callback(gcb, buf, UDI_OK, ret_status); return ; error: - callback(gcb, NULL, UDI_STAT_HW_PROBLEM, 0); + callback(gcb, buf, UDI_STAT_HW_PROBLEM, 0); } void udi_pio_probe(udi_pio_probe_call_t *callback, udi_cb_t *gcb,