move nand constants to nand.h

This commit is contained in:
marcan 2009-03-18 18:18:14 +01:00 committed by bushing
parent 9351362f10
commit 851aceb1f8
2 changed files with 7 additions and 4 deletions

4
nand.c
View File

@ -48,10 +48,6 @@ type *name = (type*)(((u32)(_al__##name)) + ((alignment) - (( \
#define NAND_FLAGS_RD 0x2000 #define NAND_FLAGS_RD 0x2000
#define NAND_FLAGS_ECC 0x1000 #define NAND_FLAGS_ECC 0x1000
#define PAGE_SIZE 2048
#define PAGE_SPARE_SIZE 64
#define ECC_BUFFER_SIZE (PAGE_SPARE_SIZE+16)
#define NAND_MAX_PAGE 0x40000
ipc_request current_request; ipc_request current_request;

7
nand.h
View File

@ -4,6 +4,13 @@
#include "types.h" #include "types.h"
#include "ipc.h" #include "ipc.h"
#define PAGE_SIZE 2048
#define PAGE_SPARE_SIZE 64
#define ECC_BUFFER_SIZE (PAGE_SPARE_SIZE+16)
#define ECC_BUFFER_ALLOC (PAGE_SPARE_SIZE+32)
#define BLOCK_SIZE 64
#define NAND_MAX_PAGE 0x40000
void nand_irq(void); void nand_irq(void);
void nand_send_command(u32 command, u32 bitmask, u32 flags, u32 num_bytes); void nand_send_command(u32 command, u32 bitmask, u32 flags, u32 num_bytes);