MOS Source Code
Loading...
Searching...
No Matches
serial_driver.c File Reference
+ Include dependency graph for serial_driver.c:

Go to the source code of this file.

Functions

static u8 serial_read_data (serial_device_t *device)
 
static void serial_write_data (serial_device_t *device, u8 data)
 
static u8 serial_read_register (serial_device_t *device, serial_register_t reg)
 
static void serial_write_register (serial_device_t *device, serial_register_t reg, u8 data)
 

Variables

const serial_driver_t x86_serial_driver
 

Function Documentation

◆ serial_read_data()

static u8 serial_read_data ( serial_device_t * device)
static

Definition at line 8 of file serial_driver.c.

+ Here is the call graph for this function:

◆ serial_write_data()

static void serial_write_data ( serial_device_t * device,
u8 data )
static

Definition at line 14 of file serial_driver.c.

+ Here is the call graph for this function:

◆ serial_read_register()

static u8 serial_read_register ( serial_device_t * device,
serial_register_t reg )
static

Definition at line 20 of file serial_driver.c.

+ Here is the call graph for this function:

◆ serial_write_register()

static void serial_write_register ( serial_device_t * device,
serial_register_t reg,
u8 data )
static

Definition at line 26 of file serial_driver.c.

+ Here is the call graph for this function:

Variable Documentation

◆ x86_serial_driver

const serial_driver_t x86_serial_driver
Initial value:
= {
.read_data = serial_read_data,
.write_data = serial_write_data,
.read_register = serial_read_register,
.write_register = serial_write_register,
}
static u8 serial_read_data(serial_device_t *device)
static void serial_write_register(serial_device_t *device, serial_register_t reg, u8 data)
static void serial_write_data(serial_device_t *device, u8 data)
static u8 serial_read_register(serial_device_t *device, serial_register_t reg)

Definition at line 32 of file serial_driver.c.