Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys this file was missing from the flash_off_t commit



details:   https://anonhg.NetBSD.org/src/rev/ef8d8f333c49
branches:  trunk
changeset: 763796:ef8d8f333c49
user:      ahoka <ahoka%NetBSD.org@localhost>
date:      Mon Apr 04 16:26:09 2011 +0000

description:
this file was missing from the flash_off_t commit

diffstat:

 sys/sys/flashio.h |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (51 lines):

diff -r e79b5cf0906b -r ef8d8f333c49 sys/sys/flashio.h
--- a/sys/sys/flashio.h Mon Apr 04 16:19:25 2011 +0000
+++ b/sys/sys/flashio.h Mon Apr 04 16:26:09 2011 +0000
@@ -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;
 };
 



Home | Main Index | Thread Index | Old Index