SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
blk.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __BLK_H__
4#define __BLK_H__
5
6#include <stdarg.h>
7#include <stdbool.h>
8#include <stddef.h>
9#include <stdint.h>
10#include <types.h>
11
12typedef struct blk_desc {
13 int devnum; /* device number */
14 uint8_t part_type; /* partition type */
15 uint8_t target; /* target SCSI ID */
16 uint8_t lun; /* target LUN */
17 uint8_t hwpart; /* HW partition, e.g. for eMMC */
18 uint8_t type; /* device type */
19 uint8_t removable; /* removable device */
20 uint64_t lba; /* number of blocks */
21 uint64_t blksz; /* block size */
23
24#endif// __BLK_H__
struct blk_desc blk_desc_t
u64_t uint64_t
Definition stdint.h:16
u8_t uint8_t
Definition stdint.h:7
Definition blk.h:12
int devnum
Definition blk.h:13
uint64_t lba
Definition blk.h:20
uint8_t hwpart
Definition blk.h:17
uint8_t type
Definition blk.h:18
uint8_t removable
Definition blk.h:19
uint64_t blksz
Definition blk.h:21
uint8_t target
Definition blk.h:15
uint8_t lun
Definition blk.h:16
uint8_t part_type
Definition blk.h:14