mac-rom/Interfaces/CIncludes/DeskBus.h

87 lines
2.2 KiB
C
Raw Normal View History

/************************************************************
Created: Saturday, July 27, 1991 at 2:54 PM
DeskBus.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1987-1991
All rights reserved
This file is used in these builds: Mac32 BigBang Sys606
Change History (most recent first):
<6> 7/30/91 JL Updated Copyright.
<5> 1/27/91 LN Checked in Database generate file from DSG.
<4> 10/21/90 gbm (with dba) Made compatible with 3.2 C compiler (and incompatible
with previous compilers).
<4> 10/10/90 JAL New style #Pragma Parameters for MPW 3.2 C
** 1.1 CCH 11/ 9/1988 Fixed headers and removed projector resource.
** 1.0 CCH 11/ 9/1988 Adding to EASE.
************************************************************/
#ifndef __DESKBUS__
#define __DESKBUS__
#ifndef __TYPES__
#include <Types.h>
#endif
typedef char ADBAddress;
struct ADBOpBlock {
Ptr dataBuffPtr; /*address of data buffer*/
Ptr opServiceRtPtr; /*service routine pointer*/
Ptr opDataAreaPtr; /*optional data area address*/
};
typedef struct ADBOpBlock ADBOpBlock;
typedef ADBOpBlock *ADBOpBPtr;
struct ADBDataBlock {
char devType; /*device type*/
char origADBAddr; /*original ADB Address*/
Ptr dbServiceRtPtr; /*service routine pointer*/
Ptr dbDataAreaAddr; /*data area address*/
};
typedef struct ADBDataBlock ADBDataBlock;
typedef ADBDataBlock *ADBDBlkPtr;
struct ADBSetInfoBlock {
Ptr siServiceRtPtr; /*service routine pointer*/
Ptr siDataAreaAddr; /*data area address*/
};
typedef struct ADBSetInfoBlock ADBSetInfoBlock;
typedef ADBSetInfoBlock *ADBSInfoPtr;
#ifdef __cplusplus
extern "C" {
#endif
pascal void ADBReInit(void)
= 0xA07B;
pascal OSErr ADBOp(Ptr data,ProcPtr compRout,Ptr buffer,short commandNum);
#pragma parameter __D0 CountADBs
pascal short CountADBs(void)
= 0xA077;
#pragma parameter __D0 GetIndADB(__A0,__D0)
pascal ADBAddress GetIndADB(ADBDataBlock *info,short devTableIndex)
= 0xA078;
#pragma parameter __D0 GetADBInfo(__A0,__D0)
pascal OSErr GetADBInfo(ADBDataBlock *info,ADBAddress adbAddr)
= 0xA079;
#pragma parameter __D0 SetADBInfo(__A0,__D0)
pascal OSErr SetADBInfo(ADBSetInfoBlock *info,ADBAddress adbAddr)
= 0xA07A;
#ifdef __cplusplus
}
#endif
#endif