Revision e4bcb14c sysemu.h
b/sysemu.h | ||
---|---|---|
116 | 116 |
#define BIOS_SIZE (4 * 1024 * 1024) |
117 | 117 |
#endif |
118 | 118 |
|
119 |
#define MAX_DISKS 4 |
|
120 |
|
|
121 |
extern BlockDriverState *bs_table[MAX_DISKS + 1]; |
|
122 |
extern BlockDriverState *sd_bdrv; |
|
123 |
extern BlockDriverState *mtd_bdrv; |
|
124 |
|
|
125 |
/* NOR flash devices */ |
|
126 |
#define MAX_PFLASH 4 |
|
127 |
extern BlockDriverState *pflash_table[MAX_PFLASH]; |
|
119 |
typedef enum { |
|
120 |
IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD |
|
121 |
} BlockInterfaceType; |
|
122 |
|
|
123 |
typedef struct DriveInfo { |
|
124 |
BlockDriverState *bdrv; |
|
125 |
BlockInterfaceType interface; |
|
126 |
int bus; |
|
127 |
int unit; |
|
128 |
} DriveInfo; |
|
129 |
|
|
130 |
#define MAX_IDE_DEVS 2 |
|
131 |
#define MAX_SCSI_DEVS 7 |
|
132 |
#define MAX_DRIVES 32 |
|
133 |
|
|
134 |
int nb_drives; |
|
135 |
DriveInfo drives_table[MAX_DRIVES+1]; |
|
136 |
|
|
137 |
extern int drive_get_index(BlockInterfaceType interface, int bus, int unit); |
|
138 |
extern int drive_get_max_bus(BlockInterfaceType interface); |
|
128 | 139 |
|
129 | 140 |
/* serial ports */ |
130 | 141 |
|
Also available in: Unified diff