Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Evan Lojewski
ast2050-flashrom
Commits
afdfce8c
Commit
afdfce8c
authored
21 years ago
by
Ollie Lho
Browse files
Options
Download
Email Patches
Plain Diff
Data type consistence
Corresponding to flashrom svn r20 and coreboot v2 svn r1487.
parent
8b8897a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
jedec.c
jedec.c
+5
-7
jedec.h
jedec.h
+2
-3
No files found.
jedec.c
View file @
afdfce8c
...
...
@@ -30,7 +30,7 @@
int
probe_jedec
(
struct
flashchip
*
flash
)
{
volatile
char
*
bios
=
flash
->
virt_addr
;
volatile
unsigned
char
*
bios
=
flash
->
virt_addr
;
unsigned
char
id1
,
id2
;
/* Issue JEDEC Product ID Entry command */
...
...
@@ -60,7 +60,7 @@ int probe_jedec(struct flashchip *flash)
return
0
;
}
int
erase_sector_jedec
(
volatile
char
*
bios
,
unsigned
int
page
)
int
erase_sector_jedec
(
volatile
unsigned
char
*
bios
,
unsigned
int
page
)
{
volatile
unsigned
char
*
Temp
;
...
...
@@ -120,8 +120,8 @@ int erase_chip_jedec(struct flashchip *flash)
return
(
0
);
}
void
write_page_write_jedec
(
volatile
char
*
bios
,
char
*
src
,
volatile
char
*
dst
,
int
page_size
)
void
write_page_write_jedec
(
volatile
unsigned
char
*
bios
,
unsigned
char
*
src
,
volatile
unsigned
char
*
dst
,
int
page_size
)
{
int
i
;
...
...
@@ -146,7 +146,6 @@ int write_byte_program_jedec(volatile unsigned char *bios, unsigned char *src,
/* transfer data from source to destination */
if
(
*
src
==
0xFF
)
{
dst
++
,
src
++
;
/* If the data is 0xFF, don't program it */
return
0
;
}
...
...
@@ -164,8 +163,7 @@ int write_byte_program_jedec(volatile unsigned char *bios, unsigned char *src,
}
int
write_sector_jedec
(
volatile
unsigned
char
*
bios
,
unsigned
char
*
src
,
volatile
unsigned
char
*
dst
,
unsigned
int
page_size
)
volatile
unsigned
char
*
dst
,
unsigned
int
page_size
)
{
int
i
;
...
...
This diff is collapsed.
Click to expand it.
jedec.h
View file @
afdfce8c
...
...
@@ -4,9 +4,8 @@
extern
int
probe_jedec
(
struct
flashchip
*
flash
);
extern
int
erase_chip_jedec
(
struct
flashchip
*
flash
);
extern
int
write_jedec
(
struct
flashchip
*
flash
,
unsigned
char
*
buf
);
extern
int
erase_sector_jedec
(
volatile
char
*
bios
,
unsigned
int
page
);
extern
int
write_sector_jedec
(
volatile
unsigned
char
*
bios
,
unsigned
char
*
src
,
extern
int
erase_sector_jedec
(
volatile
unsigned
char
*
bios
,
unsigned
int
page
);
extern
int
write_sector_jedec
(
volatile
unsigned
char
*
bios
,
unsigned
char
*
src
,
volatile
unsigned
char
*
dst
,
unsigned
int
page_size
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment