Module Name: src
Committed By: ahoka
Date: Mon Apr 4 16:26:09 UTC 2011
Modified Files:
src/sys/sys: flashio.h
Log Message:
this file was missing from the flash_off_t commit
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/sys/flashio.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/flashio.h
diff -u src/sys/sys/flashio.h:1.1 src/sys/sys/flashio.h:1.2
--- src/sys/sys/flashio.h:1.1 Sat Feb 26 18:07:32 2011
+++ src/sys/sys/flashio.h Mon Apr 4 16:26:09 2011
@@ -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 @@
/* 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 @@
* @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;
};