📄 drvlib.h
字号:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/kernel/drvlib.h
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
09400 /* IBM device driver definitions Author: Kees J. Bot
09401 * 7 Dec 1995
09402 */
09403
09404 #include <ibm/partition.h>
09405
09406 _PROTOTYPE( void partition, (struct driver *dr, int device, int style) );
09407
09408 /* BIOS parameter table layout. */
09409 #define bp_cylinders(t) (* (u16_t *) (&(t)[0]))
09410 #define bp_heads(t) (* (u8_t *) (&(t)[2]))
09411 #define bp_reduced_wr(t) (* (u16_t *) (&(t)[3]))
09412 #define bp_precomp(t) (* (u16_t *) (&(t)[5]))
09413 #define bp_max_ecc(t) (* (u8_t *) (&(t)[7]))
09414 #define bp_ctlbyte(t) (* (u8_t *) (&(t)[8]))
09415 #define bp_landingzone(t) (* (u16_t *) (&(t)[12]))
09416 #define bp_sectors(t) (* (u8_t *) (&(t)[14]))
09417
09418 /* Miscellaneous. */
09419 #define DEV_PER_DRIVE (1 + NR_PARTITIONS)
09420 #define MINOR_hd1a 128
09421 #define MINOR_fd0a (28<<2)
09422 #define P_FLOPPY 0
09423 #define P_PRIMARY 1
09424 #define P_SUB 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -