/*********************************************************************** * file: hpib_dcode.h * part#: * internal sequence#: * * ************************************************************** * * "(c)Copyright Hewlett-Packard Company, 1984.* All * * * rights are reserved. Copying or other reproduction * * * of this program except for archival purposes is * * * prohibited without the prior written consent of * * * Hewlett-Packard Company." * * ************************************************************** * * Pisces Q-DOS project * Andy Rood Kernel project lead * Bob Cline Kernel project engineer * ----------------------------------------------------- * initial 1/84 rcc */ /* bit fields for extracting information from the minor device number */ #define DISKUNIT 0x00000078 /* unit number of the disk */ #define HPIBADDR 0x00000380 /* hpib address of the disk */ #define SSVOLUME 0x00001C00 /* ss80 volume number field */ #define MINST 0x00000007 /* mount instance number of the disk */ /* handy macros for extracting minor device info */ #define DECODEUNIT(x) ((x&DISKUNIT) >>3) #define DECODEHPIB(x) ((x&HPIBADDR) >>7) #define DECODEVOLUME(x) ((x&SSVOLUME) >>10) #define DECODEMINST(x) (x&MINST) #define HPIB_XRATE 27 /* kbyte per sec rate of hpib driver */ #define HPIB_PPOLL_TIME 3000000 /* default maximum parallel poll time */