diff options
author | Stefan Roese <sr@denx.de> | 2007-02-20 10:58:04 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-02-20 10:58:04 +0100 |
commit | 90b0cf47eb23e5f3461d3d957f6898386907fd99 (patch) | |
tree | 4acaab40f79d89c08cad928fdf52cad3a93dbdec /include/part.h | |
parent | 4745acaa1a603b67f6b9b7970365ebadd7d6586f (diff) | |
parent | eb867a76238fb38e952c37871b16d0d7fd61c95f (diff) | |
download | u-boot-imx-90b0cf47eb23e5f3461d3d957f6898386907fd99.zip u-boot-imx-90b0cf47eb23e5f3461d3d957f6898386907fd99.tar.gz u-boot-imx-90b0cf47eb23e5f3461d3d957f6898386907fd99.tar.bz2 |
Merge with /home/stefan/git/u-boot/denx-merge-sr
Diffstat (limited to 'include/part.h')
-rw-r--r-- | include/part.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/part.h b/include/part.h index 318aa3c..29c0320 100644 --- a/include/part.h +++ b/include/part.h @@ -22,6 +22,7 @@ */ #ifndef _PART_H #define _PART_H + #include <ide.h> typedef struct block_dev_desc { @@ -43,7 +44,11 @@ typedef struct block_dev_desc { unsigned long (*block_read)(int dev, unsigned long start, lbaint_t blkcnt, - unsigned long *buffer); + void *buffer); + unsigned long (*block_write)(int dev, + unsigned long start, + lbaint_t blkcnt, + const void *buffer); }block_dev_desc_t; /* Interface types: */ @@ -83,6 +88,14 @@ typedef struct disk_partition { uchar type[32]; /* string type description */ } disk_partition_t; +/* Misc _get_dev functions */ +block_dev_desc_t* get_dev(char* ifname, int dev); +block_dev_desc_t* ide_get_dev(int dev); +block_dev_desc_t* scsi_get_dev(int dev); +block_dev_desc_t* usb_stor_get_dev(int dev); +block_dev_desc_t* mmc_get_dev(int dev); +block_dev_desc_t* systemace_get_dev(int dev); + /* disk/part.c */ int get_partition_info (block_dev_desc_t * dev_desc, int part, disk_partition_t *info); void print_part (block_dev_desc_t *dev_desc); |