|
iPXE
|
INT13 disk log console. More...
#include <stdint.h>#include <string.h>#include <errno.h>#include <ipxe/console.h>#include <ipxe/disklog.h>#include <ipxe/init.h>#include <realmode.h>#include <int13.h>#include <config/console.h>Go to the source code of this file.
Macros | |
| #define | CONSOLE_INT13 ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG ) |
| #define | INT13CON_DRIVE 0x80 |
| Disk drive number. | |
| #define | int13con_vector __use_data16 ( int13con_vector ) |
| #define | int13con_buffer __use_data16 ( int13con_buffer ) |
| #define | int13con_address __use_data16 ( int13con_address ) |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static struct segoff | __bss16 (int13con_vector) |
| Original INT13 vector. | |
| static uint8_t | __bss16_array (int13con_buffer, [INT13_BLKSIZE]) |
| Sector buffer. | |
| static struct int13_disk_address | __bss16 (int13con_address) |
| Disk address packet. | |
| static int | int13con_rw (unsigned int op, uint64_t lba) |
| Read/write disk sector. | |
| static int | int13con_write (void) |
| Write current logical block. | |
| static void | int13con_putchar (int character) |
| Write character to console. | |
| static int | int13con_find (void) |
| Find log partition. | |
| static void | int13con_init (void) |
| Initialise INT13 console. | |
| struct init_fn int13con_init_fn | __init_fn (INIT_CONSOLE) |
| INT13 console initialisation function. | |
| __asm__ (".globl ipxe_oem_info_disklog\n\t" ".equ ipxe_oem_info_disklog, 0x0001\n\t") | |
Variables | |
| static struct disklog | int13con_disklog |
| Disk log. | |
| struct console_driver int13con | __console_driver |
| INT13 console driver. | |
| static struct disklog_operations | int13con_op |
| INT13 disk log operations. | |
INT13 disk log console.
Definition in file int13con.c.
| #define CONSOLE_INT13 ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG ) |
Definition at line 51 of file int13con.c.
| #define INT13CON_DRIVE 0x80 |
Disk drive number.
Definition at line 55 of file int13con.c.
Referenced by int13con_init(), and int13con_rw().
| #define int13con_vector __use_data16 ( int13con_vector ) |
Definition at line 59 of file int13con.c.
Referenced by __bss16(), and int13con_init().
| #define int13con_buffer __use_data16 ( int13con_buffer ) |
Definition at line 63 of file int13con.c.
Referenced by __bss16_array(), int13con_find(), and int13con_rw().
| #define int13con_address __use_data16 ( int13con_address ) |
Definition at line 67 of file int13con.c.
Referenced by __bss16(), and int13con_rw().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Original INT13 vector.
References __bss16, and int13con_vector.
|
static |
Sector buffer.
References INT13_BLKSIZE, and int13con_buffer.
|
static |
Disk address packet.
References __bss16, and int13con_address.
|
static |
Read/write disk sector.
| rc | Return status code |
Definition at line 81 of file int13con.c.
References __asm__(), __from_data16, DBG, EIO, error, int13con_address, int13con_buffer, INT13CON_DRIVE, lba, op, REAL_CODE, and rm_ds.
Referenced by int13con_find(), and int13con_write().
|
static |
Write current logical block.
| rc | Return status code |
Definition at line 115 of file int13con.c.
References INT13_EXTENDED_WRITE, int13con_disklog, and int13con_rw().
|
static |
Write character to console.
| character | Character |
Definition at line 131 of file int13con.c.
References disklog_putchar(), and int13con_disklog.
|
static |
Find log partition.
| rc | Return status code |
Definition at line 142 of file int13con.c.
References DBG, DBG2_HDA, disklog_init(), disklog_open(), DISKLOG_PARTITION_TYPE, EINVAL, ENOENT, INT13_BLKSIZE, INT13_EXTENDED_READ, INT13_MBR_MAGIC, int13con_buffer, int13con_disklog, int13con_op, int13con_rw(), length, master_boot_record::magic, memcpy(), master_boot_record::partitions, rc, start, strerror(), and type.
Referenced by int13con_init().
|
static |
Initialise INT13 console.
Definition at line 206 of file int13con.c.
References __asm__(), __volatile__(), copy_from_real, DBG, discard_c, error, INT13_EXTENSION_CHECK, INT13CON_DRIVE, int13con_find(), int13con_vector, rc, and REAL_CODE.
Referenced by __init_fn().
| struct init_fn int13con_init_fn __init_fn | ( | INIT_CONSOLE | ) |
INT13 console initialisation function.
References __init_fn, INIT_CONSOLE, and int13con_init().
| __asm__ | ( | ".globl ipxe_oem_info_disklog\n\t" ".equ | ipxe_oem_info_disklog, |
| 0x0001\n\t" | ) |
Referenced by int13con_rw().
|
static |
Disk log.
Definition at line 70 of file int13con.c.
Referenced by int13con_find(), int13con_putchar(), and int13con_write().
| struct console_driver int13con __console_driver |
INT13 console driver.
Definition at line 72 of file int13con.c.
|
static |
INT13 disk log operations.
Definition at line 122 of file int13con.c.
Referenced by int13con_find().