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

static void ecr_set ( u16  addr,
u16  value 
) [static]

set 16 bit register value

Parameters:
addr register address
value value to set

Definition at line 76 of file vaiostat.c.

Referenced by vaio_lcd_ctrl().

{
      wait_on_command( inw_p(SONYPI_CST_IOPORT) & 3 );
    outw_p(0x81, SONYPI_CST_IOPORT);
      wait_on_command( inw_p(SONYPI_CST_IOPORT) & 2 );
    outw_p(addr, SONYPI_DATA_IOPORT);
      wait_on_command( inw_p(SONYPI_CST_IOPORT) & 2 );
    outw_p(value, SONYPI_DATA_IOPORT);
      wait_on_command( inw_p(SONYPI_CST_IOPORT) & 2 );
}


Generated by  Doxygen 1.6.0   Back to index