tkernel_2/driver/tef_em1d/sysdsk/src/pccardio.h | bare source | permlink (0.02 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T-Kernel 2.0 Software Package 4: * 5: * Copyright 2011 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17. 10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01. 11: * 12: *---------------------------------------------------------------------- 13: */ 14: 15: 16: /* 17: * pccardio.h system disk driver 18: * 19: * PC card I/O definition (for EM1-D512) 20: */ 21: 22: /* 23: * PC card I/O access definition 24: */ 25: #define InB(reg) (UB)in_b(iob + (reg)) 26: #define InH(reg) (UH)in_h(iob + (reg)) 27: #define OutB(reg, v) out_b(iob + (reg), (UB)(v)) 28: #define OutH(reg, v) out_h(iob + (reg), (UH)(v)) 29: #define CnvHIO(d) CnvLeH(d) 30: 31: #define InForceB(iob, reg) (UB)in_b((iob) + (reg)) 32: 33: /* 34: * Set the bus width for PC card I/O access 35: */ 36: #define pcIO_8bits() /* No Action */ 37: #define pcIO_16bits() /* No Action */