Logo Search packages:      
Sourcecode: vaiostat version File versions  Download package

static u8 ecr_get8 ( u8  addr  )  [static]

get 8 bit register value

Parameters:
addr register address
Returns:
8 bit value

Definition at line 95 of file vaiostat.c.

Referenced by ecr_get16(), and write_status_info().

{
      wait_on_command( inb_p(SONYPI_CST_IOPORT) & 3 );
      outb(0x80, SONYPI_CST_IOPORT);
      wait_on_command( inb_p(SONYPI_CST_IOPORT) & 2 );
      outb(addr, SONYPI_DATA_IOPORT);
      wait_on_command( inb_p(SONYPI_CST_IOPORT) & 2 );
      return inb_p(SONYPI_DATA_IOPORT);
}


Generated by  Doxygen 1.6.0   Back to index