1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

change the sturct name

This commit is contained in:
xiangfu
2009-05-20 08:13:10 +00:00
parent e7a23fd7b6
commit 132b7afd9c
8 changed files with 42 additions and 42 deletions

View File

@@ -49,7 +49,7 @@ static volatile unsigned char *cmdport = (volatile unsigned char *)0xb8008000;
static int bus = 8, row = 2, pagesize = 2048, oobsize = 64, ppb = 128;
static int bad_block_pos,bad_block_page,force_erase,ecc_pos,wp_pin;
extern struct hand_t Hand;
extern struct hand Hand;
//static u8 data_buf[2048] = {0};
static u8 oob_buf[256] = {0};
extern u16 handshake_PKT[4];

View File

@@ -39,7 +39,7 @@ static int oobecc = 0; /* Whether the oob data of the binary contains
static int bad_block_page = 127; /* Specify the page number of badblock flag inside a block */
static u32 bad_block_pos = 0; /* Specify the badblock flag offset inside the oob */
static u8 oob_buf[256] = {0};
extern struct hand_t Hand;
extern struct hand Hand;
extern u16 handshake_PKT[4];
static inline void __nand_sync(void)

View File

@@ -22,7 +22,7 @@ u32 (*nand_mark_bad) (int bad);
void (*nand_enable) (unsigned int csn);
void (*nand_disable) (unsigned int csn);
struct hand_t Hand,*Hand_p;
struct hand Hand,*Hand_p;
extern u32 Bulk_out_buf[BULK_OUT_BUF_SIZE];
extern u32 Bulk_in_buf[BULK_IN_BUF_SIZE];
extern u16 handshake_PKT[4];
@@ -48,9 +48,9 @@ void dump_data(unsigned int *p, int size)
void config_hand()
{
struct hand_t *hand_p;
hand_p=(struct hand_t *)Bulk_out_buf;
memcpy(&Hand, (unsigned char *)Bulk_out_buf, sizeof(struct hand_t));
struct hand *hand_p;
hand_p=(struct hand *)Bulk_out_buf;
memcpy(&Hand, (unsigned char *)Bulk_out_buf, sizeof(struct hand));
#if 0
Hand.nand_bw=hand_p->nand_bw;