Mercurial > flash_v2
comparison packages/io/flash/current/include/flash.h @ 1223:dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
| author | gthomas |
|---|---|
| date | Fri, 19 Sep 2003 17:11:18 +0000 |
| parents | d2c90368aeef |
| children | 587b0b1c6927 |
comparison
equal
deleted
inserted
replaced
| 1222:f0bd64ec9405 | 1223:dbcfe4e0dbd2 |
|---|---|
| 7 //========================================================================== | 7 //========================================================================== |
| 8 //####ECOSGPLCOPYRIGHTBEGIN#### | 8 //####ECOSGPLCOPYRIGHTBEGIN#### |
| 9 // ------------------------------------------- | 9 // ------------------------------------------- |
| 10 // This file is part of eCos, the Embedded Configurable Operating System. | 10 // This file is part of eCos, the Embedded Configurable Operating System. |
| 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. | 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
| 12 // Copyright (C) 2003 Gary Thomas | |
| 12 // | 13 // |
| 13 // eCos is free software; you can redistribute it and/or modify it under | 14 // eCos is free software; you can redistribute it and/or modify it under |
| 14 // the terms of the GNU General Public License as published by the Free | 15 // the terms of the GNU General Public License as published by the Free |
| 15 // Software Foundation; either version 2 or (at your option) any later version. | 16 // Software Foundation; either version 2 or (at your option) any later version. |
| 16 // | 17 // |
| 61 #define FLASH_MIN_WORKSPACE CYGNUM_FLASH_WORKSPACE_SIZE // Space used by FLASH code | 62 #define FLASH_MIN_WORKSPACE CYGNUM_FLASH_WORKSPACE_SIZE // Space used by FLASH code |
| 62 | 63 |
| 63 externC int flash_init(void *work_space, int work_space_length, _printf *pf); | 64 externC int flash_init(void *work_space, int work_space_length, _printf *pf); |
| 64 externC int flash_erase(void *base, int len, void **err_address); | 65 externC int flash_erase(void *base, int len, void **err_address); |
| 65 externC int flash_program(void *flash_base, void *ram_base, int len, void **err_address); | 66 externC int flash_program(void *flash_base, void *ram_base, int len, void **err_address); |
| 67 externC int flash_read(void *flash_base, void *ram_base, int len, void **err_address); | |
| 66 externC void flash_dev_query(void *data); | 68 externC void flash_dev_query(void *data); |
| 67 #ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING | 69 #ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING |
| 68 externC int flash_lock(void *base, int len, void **err_address); | 70 externC int flash_lock(void *base, int len, void **err_address); |
| 69 externC int flash_unlock(void *base, int len, void **err_address); | 71 externC int flash_unlock(void *base, int len, void **err_address); |
| 70 #endif | 72 #endif |
