this file was missing from the flash_off_t commit

This commit is contained in:
ahoka 2011-04-04 16:26:09 +00:00
parent a468cfe851
commit b354849f2e
1 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: flashio.h,v 1.1 2011/02/26 18:07:32 ahoka Exp $ */
/* $NetBSD: flashio.h,v 1.2 2011/04/04 16:26:09 ahoka Exp $ */
/*-
* Copyright (c) 2011 Department of Software Engineering,
@ -59,7 +59,8 @@ enum {
/* public userspace API */
/* common integer type to address flash */
typedef int64_t flash_addr_t;
typedef int64_t flash_off_t;
typedef uint64_t flash_size_t;
/**
* struct erase_params - for ioctl erase call
@ -67,25 +68,25 @@ typedef int64_t flash_addr_t;
* @len: length of the erase
*/
struct flash_erase_params {
flash_addr_t ep_addr;
flash_addr_t ep_len;
flash_off_t ep_addr;
flash_off_t ep_len;
};
struct flash_badblock_params {
flash_addr_t bbp_addr;
flash_off_t bbp_addr;
bool bbp_isbad;
};
struct flash_info_params {
flash_addr_t ip_flash_size;
flash_off_t ip_flash_size;
size_t ip_page_size;
size_t ip_erase_size;
uint8_t ip_flash_type;
};
struct flash_dump_params {
flash_addr_t dp_block;
flash_addr_t dp_len;
flash_off_t dp_block;
flash_off_t dp_len;
uint8_t *dp_buf;
};