|
|
DataMuseum.dkPresents historical artifacts from the history of: ICL Comet 32 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about ICL Comet 32 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 1041 (0x411)
Types: TextFile
Notes: UNIX file
Names: »disk.h«
└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
└─⟦28c352965⟧ »/a« UNIX Filesystem
└─⟦this⟧ »usr/include/sys/disk.h«
/*
* disk.h -- simplified for Comet32
*/
#ifndef BSIZE
#define BSIZE 1024 /* the default block size */
#define PGSIZE 512 /* disk sector size */
#endif
#define DMAGIC ('d'<<0|'t'<<8|'a'<<16|'b'<<24)
#define DH_TABLE 10 /* starting sector of disk table */
#define DH_BOOT 30 /* starting sector of boot program */
#define DH_SIZE 100 /* size of header in sectors */
/*
* The configuration data used by the disk driver.
*/
struct partition {
int pa_size; /* number of sectors in partition */
int pa_offset; /* starting sector number of partition */
};
typedef struct partition wddata[8];
struct disk {
wddata wdu_dd; /* device configuration data */
char wdu_unit; /* unit number to disk controller */
char wdu_open; /* disk opened flag */
struct buf wdu_queue; /* queue for requests */
};
/*
* The configuration data stored at sector 10 of the disk.
*/
struct disktab {
int dt_magic; /* the magic number */
wddata dt_dd; /* partition data */
char dt_name[16]; /* a buffer for the name of the disk */
};