RTEMS 6.1-rc1
|
"MS-DOS-style" Partition Tables Support More...
#include <rtems/chain.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/endian.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <rtems.h>
#include <rtems/blkdev.h>
#include <rtems/libio.h>
#include <rtems/libio_.h>
#include <rtems/bdbuf.h>
#include <rtems/seterr.h>
Go to the source code of this file.
Data Structures | |
struct | rtems_sector_data_s |
struct | rtems_part_desc_s |
struct | rtems_disk_desc_s |
Macros | |
#define | RTEMS_IDE_SECTOR_BITS 9 |
#define | RTEMS_IDE_SECTOR_SIZE 512 |
#define | RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE 16 |
#define | RTEMS_IDE_PARTITION_MAX_PARTITION_NUMBER 63 |
#define | RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER 4 |
#define | RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX 16 |
#define | RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_DATA1 0x55 |
#define | RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_DATA2 0xaa |
#define | RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET 0x1fe |
#define | RTEMS_IDE_PARTITION_TABLE_OFFSET 0x1be |
#define | RTEMS_IDE_PARTITION_TABLE_SIZE (4 * 16) |
#define | RTEMS_IDE_PARTITION_BOOTABLE_OFFSET 0 |
#define | RTEMS_IDE_PARTITION_SYS_TYPE_OFFSET 4 |
#define | RTEMS_IDE_PARTITION_START_OFFSET 8 |
#define | RTEMS_IDE_PARTITION_SIZE_OFFSET 12 |
#define | LE_TO_CPU_U16(v) le16toh(v) |
#define | LE_TO_CPU_U32(v) le32toh(v) |
#define | CPU_TO_LE_U16(v) htole16(v) |
#define | CPU_TO_LE_U32(v) htole32(v) |
Typedefs | |
typedef struct rtems_sector_data_s | rtems_sector_data_t |
typedef struct rtems_part_desc_s | rtems_part_desc_t |
typedef struct rtems_disk_desc_s | rtems_disk_desc_t |
Functions | |
void | rtems_ide_part_table_free (rtems_disk_desc_t *disk_desc) RTEMS_DEPRECATED |
rtems_status_code | rtems_ide_part_table_get (const char *dev_name, rtems_disk_desc_t *disk_desc) RTEMS_DEPRECATED |
rtems_status_code | rtems_ide_part_table_initialize (const char *dev_name) RTEMS_DEPRECATED |
"MS-DOS-style" Partition Tables Support
void rtems_ide_part_table_free | ( | rtems_disk_desc_t * | disk_desc | ) |
rtems_status_code rtems_ide_part_table_get | ( | const char * | dev_name, |
rtems_disk_desc_t * | disk_desc | ||
) |
rtems_status_code rtems_ide_part_table_initialize | ( | const char * | dev_name | ) |