SyterKit
0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
include
drivers
ufs
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
12
typedef
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 */
22
}
blk_desc_t
;
23
24
#endif
// __BLK_H__
blk_desc_t
struct blk_desc blk_desc_t
uint64_t
u64_t uint64_t
Definition
stdint.h:16
uint8_t
u8_t uint8_t
Definition
stdint.h:7
blk_desc
Definition
blk.h:12
blk_desc::devnum
int devnum
Definition
blk.h:13
blk_desc::lba
uint64_t lba
Definition
blk.h:20
blk_desc::hwpart
uint8_t hwpart
Definition
blk.h:17
blk_desc::type
uint8_t type
Definition
blk.h:18
blk_desc::removable
uint8_t removable
Definition
blk.h:19
blk_desc::blksz
uint64_t blksz
Definition
blk.h:21
blk_desc::target
uint8_t target
Definition
blk.h:15
blk_desc::lun
uint8_t lun
Definition
blk.h:16
blk_desc::part_type
uint8_t part_type
Definition
blk.h:14
Generated by
1.9.8