Changeset 6780829 in rtems for cpukit/libblock


Ignore:
Timestamp:
Apr 30, 2010, 8:42:13 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10, 4.11, master
Children:
361e26d
Parents:
57b5d14
Message:

2010-04-30 Sebastian Huber <sebastian.huber@…>

  • libblock/src/bdpart.c: Removed file.
  • libblock/src/bdpart-create.c, libblock/src/bdpart-dump.c, libblock/src/bdpart-mount.c, libblock/src/bdpart-read.c, libblock/src/bdpart-register.c, libblock/src/bdpart-sort.c, libblock/src/bdpart-write.c: New files.
  • libblock/include/rtems/bdpart.h: Moved some definitions from bdpart.c.
  • libblock/Makefile.am: Update for file changes.
Location:
cpukit/libblock
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/Makefile.am

    r57b5d14 r6780829  
    1414    src/nvdisk.c \
    1515    src/nvdisk-sram.c \
    16     src/bdpart.c \
     16    src/bdpart-create.c \
     17    src/bdpart-dump.c \
     18    src/bdpart-mount.c \
     19    src/bdpart-read.c \
     20    src/bdpart-register.c \
     21    src/bdpart-sort.c \
     22    src/bdpart-write.c \
    1723    include/rtems/bdbuf.h include/rtems/blkdev.h \
    1824    include/rtems/diskdevs.h include/rtems/flashdisk.h \
  • cpukit/libblock/include/rtems/bdpart.h

    r57b5d14 r6780829  
    88
    99/*
    10  * Copyright (c) 2009
     10 * Copyright (c) 2009, 2010
    1111 * embedded brains GmbH
    1212 * Obere Lagerstr. 30
     
    356356/** @} */
    357357
     358#define RTEMS_BDPART_MBR_CYLINDER_SIZE 63
     359
     360#define RTEMS_BDPART_NUMBER_SIZE 4
     361
     362#define RTEMS_BDPART_BLOCK_SIZE 512
     363
     364#define RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE 16
     365
     366#define RTEMS_BDPART_MBR_OFFSET_TABLE_0 446
     367
     368#define RTEMS_BDPART_MBR_OFFSET_TABLE_1 \
     369  (RTEMS_BDPART_MBR_OFFSET_TABLE_0 + RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE)
     370
     371#define RTEMS_BDPART_MBR_OFFSET_DISK_ID 440
     372
     373#define RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0 510
     374
     375#define RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1 511
     376
     377#define RTEMS_BDPART_MBR_SIGNATURE_0 0x55U
     378
     379#define RTEMS_BDPART_MBR_SIGNATURE_1 0xaaU
     380
     381#define RTEMS_BDPART_MBR_OFFSET_BEGIN 8
     382
     383#define RTEMS_BDPART_MBR_OFFSET_SIZE 12
     384
     385#define RTEMS_BDPART_MBR_OFFSET_TYPE 4
     386
     387#define RTEMS_BDPART_MBR_OFFSET_FLAGS 0
     388
     389static inline uint8_t rtems_bdpart_mbr_partition_type(
     390  const uuid_t type
     391)
     392{
     393  return type [0];
     394}
     395
     396rtems_status_code rtems_bdpart_get_disk_data(
     397  const char *disk_name,
     398  dev_t *disk,
     399  rtems_blkdev_bnum *disk_end
     400);
     401
    358402#ifdef __cplusplus
    359403}
Note: See TracChangeset for help on using the changeset viewer.