mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-30 23:24:19 +01:00
move nand constants to nand.h
This commit is contained in:
parent
9351362f10
commit
851aceb1f8
4
nand.c
4
nand.c
@ -48,10 +48,6 @@ type *name = (type*)(((u32)(_al__##name)) + ((alignment) - (( \
|
||||
#define NAND_FLAGS_RD 0x2000
|
||||
#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;
|
||||
|
||||
|
7
nand.h
7
nand.h
@ -4,6 +4,13 @@
|
||||
#include "types.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_send_command(u32 command, u32 bitmask, u32 flags, u32 num_bytes);
|
||||
|
Loading…
Reference in New Issue
Block a user