|
RTEMS
5.1
|
Go to the documentation of this file. 31 #ifndef _RTEMS_SCORE_SH_IO_H 32 #define _RTEMS_SCORE_SH_IO_H 34 #define readb(addr) (*(volatile unsigned char *) (addr)) 35 #define readw(addr) (*(volatile unsigned short *) (addr)) 36 #define readl(addr) (*(volatile unsigned int *) (addr)) 37 #define read8(addr) (*(volatile uint8_t *) (addr)) 38 #define read16(addr) (*(volatile uint16_t *) (addr)) 39 #define read32(addr) (*(volatile uint32_t *) (addr)) 41 #define writeb(b,addr) ((*(volatile unsigned char *) (addr)) = (b)) 42 #define writew(b,addr) ((*(volatile unsigned short *) (addr)) = (b)) 43 #define writel(b,addr) ((*(volatile unsigned int *) (addr)) = (b)) 44 #define write8(b,addr) ((*(volatile uint8_t *) (addr)) = (b)) 45 #define write16(b,addr) ((*(volatile uint16_t *) (addr)) = (b)) 46 #define write32(b,addr) ((*(volatile uint32_t *) (addr)) = (b)) 48 #define inb(addr) readb(addr) 49 #define outb(b,addr) writeb(b,addr)