File:rk.c - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki
5350 #
5351 /*
5352 */
5353
5354 /*
5355 * RK disk driver
5356 */
5357
5358 #include "../param.h"
5359 #include "../buf.h"
5360 #include "../conf.h"
5361 #include "../user.h"
5362
5363 #define RKADDR 0177400
5364 #define NRK 4
5365 #define NRKBLK 4872
5366
5367 #define RESET 0
5368 #define GO 01
5369 #define DRESET 014
5370 #define IENABLE 0100
5371 #define DRY 0200
5372 #define ARDY 0100
5373 #define WLO 020000
5374 #define CTLRDY 0200
5375
5376 struct {
5377 int rkds;
5378 int rker;
5379 int rkcs;
5380 int rkwc;
5381 int rkba;
5382 int rkda;
5383 };
5384 /* ------------------------- */
5385
5386 struct devtab rktab;
5387 struct buf rrkbuf;