Exemple #1
0
void write_test (void)
{
	unsigned long now = 0x12345;

	log_open_for_writing (now);

	now += 50;
	latch_output (now, IO_ADDR(WPC_RAM_LOCKSIZE), 0x00);
	now += 10;
	latch_output (now, IO_ADDR(WPC_ZEROCROSS_IRQ_CLEAR), 0x00);

	log_close ();
}
static void __iomem *get_gpio_addr(unsigned gpio)
{
    /* Our list of GPIO chips */
    static void __iomem *gpio_addrs[GPIO_BLOCKS_COUNT] = {
        IO_ADDR(CFG_GPIO_0_BASE),
        IO_ADDR(CFG_GPIO_1_BASE),
        IO_ADDR(CFG_GPIO_2_BASE),
        IO_ADDR(CFG_GPIO_3_BASE),
        IO_ADDR(CFG_GPIO_4_BASE),
        IO_ADDR(CFG_GPIO_5_BASE),
        IO_ADDR(CFG_GPIO_6_BASE),
        IO_ADDR(CFG_GPIO_7_BASE),
        IO_ADDR(CFG_GPIO_8_BASE)
    };

    return gpio_addrs[GPIO_BLOCK(gpio)];
}
Exemple #3
0
unsigned int
_inl (unsigned long int port)
{
  return *((volatile unsigned long *)(IO_ADDR (port)));
}
Exemple #4
0
void
_outl (unsigned int b, unsigned long int port)
{
  *((volatile unsigned long *)(IO_ADDR (port))) = b;
}
Exemple #5
0
void
_outw (unsigned short b, unsigned long int port)
{
  *((volatile unsigned short *)(IO_ADDR (port))) = b;
}
Exemple #6
0
void
_outb (unsigned char b, unsigned long int port)
{
  *((volatile unsigned char *)(IO_ADDR (port))) = b;
}
Exemple #7
0
unsigned long int
inl(unsigned long int port)
{
    return *((__volatile__ unsigned long *)(IO_ADDR (port)));
}
Exemple #8
0
unsigned char
inb (unsigned long int port)
{
    return *((__volatile__ unsigned char *)(IO_ADDR (port)));
}
Exemple #9
0
void
outl(unsigned long b, unsigned long int port)
{
    *((__volatile__ unsigned long *)(IO_ADDR (port))) = b;
}
Exemple #10
0
void
outw(unsigned short b, unsigned long int port)
{
    *((__volatile__ unsigned short *)(IO_ADDR (port))) = b;
}
Exemple #11
0
void
outb(unsigned char b, unsigned long int port)
{
    *((__volatile__ unsigned char *)(IO_ADDR (port))) = b;
}