Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1024 lines
31 KiB

  1. /*
  2. File: Slots.h
  3. Contains: Slot Manager Interfaces.
  4. Version: Technology: System 7.5
  5. Release: QuickTime 7.3
  6. Copyright: (c) 2007 (c) 1986-1993, 1995-1999 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://developer.apple.com/bugreporter/
  10. */
  11. #ifndef __SLOTS__
  12. #define __SLOTS__
  13. #ifndef __MACTYPES__
  14. #include <MacTypes.h>
  15. #endif
  16. #ifndef __EVENTS__
  17. #include <Events.h>
  18. #endif
  19. #ifndef __FILES__
  20. #include <Files.h>
  21. #endif
  22. #if PRAGMA_ONCE
  23. #pragma once
  24. #endif
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #if PRAGMA_IMPORT
  29. #pragma import on
  30. #endif
  31. #if PRAGMA_STRUCT_ALIGN
  32. #pragma options align=mac68k
  33. #elif PRAGMA_STRUCT_PACKPUSH
  34. #pragma pack(push, 2)
  35. #elif PRAGMA_STRUCT_PACK
  36. #pragma pack(2)
  37. #endif
  38. enum {
  39. fCardIsChanged = 1, /*Card is Changed field in StatusFlags field of sInfoArray*/
  40. fCkForSame = 0, /*For SearchSRT. Flag to check for SAME sResource in the table. */
  41. fCkForNext = 1, /*For SearchSRT. Flag to check for NEXT sResource in the table. */
  42. fWarmStart = 2 /*If this bit is set then warm start else cold start.*/
  43. };
  44. enum {
  45. stateNil = 0, /*State*/
  46. stateSDMInit = 1, /*:Slot declaration manager Init*/
  47. statePRAMInit = 2, /*:sPRAM record init*/
  48. statePInit = 3, /*:Primary init*/
  49. stateSInit = 4 /*:Secondary init*/
  50. };
  51. enum {
  52. /* flags for spParamData */
  53. fall = 0, /* bit 0: set=search enabled/disabled sRsrc's */
  54. foneslot = 1, /* 1: set=search sRsrc's in given slot only */
  55. fnext = 2 /* 2: set=search for next sRsrc */
  56. };
  57. enum {
  58. /* Misc masks */
  59. catMask = 0x08, /* sets spCategory field of spTBMask (bit 3) */
  60. cTypeMask = 0x04, /* sets spCType field of spTBMask (bit 2) */
  61. drvrSWMask = 0x02, /* sets spDrvrSW field of spTBMask (bit 1) */
  62. drvrHWMask = 0x01 /* sets spDrvrHW field of spTBMask (bit 0) */
  63. };
  64. typedef CALLBACK_API_REGISTER68K( short , SlotIntServiceProcPtr, (long sqParameter) );
  65. typedef REGISTER_UPP_TYPE(SlotIntServiceProcPtr) SlotIntServiceUPP;
  66. #if CALL_NOT_IN_CARBON
  67. /*
  68. * NewSlotIntServiceUPP()
  69. *
  70. * Availability:
  71. * Non-Carbon CFM: available as macro/inline
  72. * CarbonLib: not available
  73. * Mac OS X: not available
  74. */
  75. EXTERN_API_C( SlotIntServiceUPP )
  76. NewSlotIntServiceUPP(SlotIntServiceProcPtr userRoutine);
  77. #if !OPAQUE_UPP_TYPES
  78. enum { uppSlotIntServiceProcInfo = 0x0000B822 }; /* register 2_bytes:D0 Func(4_bytes:A1) */
  79. #ifdef __cplusplus
  80. inline DEFINE_API_C(SlotIntServiceUPP) NewSlotIntServiceUPP(SlotIntServiceProcPtr userRoutine) { return (SlotIntServiceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSlotIntServiceProcInfo, GetCurrentArchitecture()); }
  81. #else
  82. #define NewSlotIntServiceUPP(userRoutine) (SlotIntServiceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSlotIntServiceProcInfo, GetCurrentArchitecture())
  83. #endif
  84. #endif
  85. /*
  86. * DisposeSlotIntServiceUPP()
  87. *
  88. * Availability:
  89. * Non-Carbon CFM: available as macro/inline
  90. * CarbonLib: not available
  91. * Mac OS X: not available
  92. */
  93. EXTERN_API_C( void )
  94. DisposeSlotIntServiceUPP(SlotIntServiceUPP userUPP);
  95. #if !OPAQUE_UPP_TYPES
  96. #ifdef __cplusplus
  97. inline DEFINE_API_C(void) DisposeSlotIntServiceUPP(SlotIntServiceUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  98. #else
  99. #define DisposeSlotIntServiceUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  100. #endif
  101. #endif
  102. /*
  103. * InvokeSlotIntServiceUPP()
  104. *
  105. * Availability:
  106. * Non-Carbon CFM: available as macro/inline
  107. * CarbonLib: not available
  108. * Mac OS X: not available
  109. */
  110. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  111. #pragma parameter __D0 InvokeSlotIntServiceUPP(__A1, __A0)
  112. #endif
  113. EXTERN_API_C( short )
  114. InvokeSlotIntServiceUPP(
  115. long sqParameter,
  116. SlotIntServiceUPP userUPP) ONEWORDINLINE(0x4E90);
  117. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  118. #ifdef __cplusplus
  119. inline DEFINE_API_C(short) InvokeSlotIntServiceUPP(long sqParameter, SlotIntServiceUPP userUPP) { return (short)CALL_ONE_PARAMETER_UPP(userUPP, uppSlotIntServiceProcInfo, sqParameter); }
  120. #else
  121. #define InvokeSlotIntServiceUPP(sqParameter, userUPP) (short)CALL_ONE_PARAMETER_UPP((userUPP), uppSlotIntServiceProcInfo, (sqParameter))
  122. #endif
  123. #endif
  124. #endif /* CALL_NOT_IN_CARBON */
  125. #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
  126. /* support for pre-Carbon UPP routines: New...Proc and Call...Proc */
  127. #define NewSlotIntServiceProc(userRoutine) NewSlotIntServiceUPP(userRoutine)
  128. #define CallSlotIntServiceProc(userRoutine, sqParameter) InvokeSlotIntServiceUPP(sqParameter, userRoutine)
  129. #endif /* CALL_NOT_IN_CARBON */
  130. struct SlotIntQElement {
  131. Ptr sqLink; /*ptr to next element*/
  132. short sqType; /*queue type ID for validity*/
  133. short sqPrio; /*priority*/
  134. SlotIntServiceUPP sqAddr; /*interrupt service routine*/
  135. long sqParm; /*optional A1 parameter*/
  136. };
  137. typedef struct SlotIntQElement SlotIntQElement;
  138. typedef SlotIntQElement * SQElemPtr;
  139. struct SpBlock {
  140. long spResult; /*FUNCTION Result*/
  141. Ptr spsPointer; /*structure pointer*/
  142. long spSize; /*size of structure*/
  143. long spOffsetData; /*offset/data field used by sOffsetData*/
  144. Ptr spIOFileName; /*ptr to IOFile name for sDisDrvrName*/
  145. Ptr spsExecPBlk; /*pointer to sExec parameter block.*/
  146. long spParamData; /*misc parameter data (formerly spStackPtr).*/
  147. long spMisc; /*misc field for SDM.*/
  148. long spReserved; /*reserved for future expansion*/
  149. short spIOReserved; /*Reserved field of Slot Resource Table*/
  150. short spRefNum; /*RefNum*/
  151. short spCategory; /*sType: Category*/
  152. short spCType; /*Type*/
  153. short spDrvrSW; /*DrvrSW*/
  154. short spDrvrHW; /*DrvrHW*/
  155. SInt8 spTBMask; /*type bit mask bits 0..3 mask words 0..3*/
  156. SInt8 spSlot; /*slot number*/
  157. SInt8 spID; /*structure ID*/
  158. SInt8 spExtDev; /*ID of the external device*/
  159. SInt8 spHwDev; /*Id of the hardware device.*/
  160. SInt8 spByteLanes; /*bytelanes from card ROM format block*/
  161. SInt8 spFlags; /*standard flags*/
  162. SInt8 spKey; /*Internal use only*/
  163. };
  164. typedef struct SpBlock SpBlock;
  165. typedef SpBlock * SpBlockPtr;
  166. struct SInfoRecord {
  167. Ptr siDirPtr; /*Pointer to directory*/
  168. short siInitStatusA; /*initialization E*/
  169. short siInitStatusV; /*status returned by vendor init code*/
  170. SInt8 siState; /*initialization state*/
  171. SInt8 siCPUByteLanes; /*0=[d0..d7] 1=[d8..d15]*/
  172. SInt8 siTopOfROM; /*Top of ROM= $FssFFFFx: x is TopOfROM*/
  173. SInt8 siStatusFlags; /*bit 0 - card is changed*/
  174. short siTOConst; /*Time Out C for BusErr*/
  175. SInt8 siReserved[2]; /*reserved*/
  176. Ptr siROMAddr; /* addr of top of ROM */
  177. SInt8 siSlot; /* slot number */
  178. SInt8 siPadding[3]; /* reserved */
  179. };
  180. typedef struct SInfoRecord SInfoRecord;
  181. typedef SInfoRecord * SInfoRecPtr;
  182. struct SDMRecord {
  183. ProcPtr sdBEVSave; /*Save old BusErr vector*/
  184. ProcPtr sdBusErrProc; /*Go here to determine if it is a BusErr*/
  185. ProcPtr sdErrorEntry; /*Go here if BusErrProc finds real BusErr*/
  186. long sdReserved; /*Reserved*/
  187. };
  188. typedef struct SDMRecord SDMRecord;
  189. struct FHeaderRec {
  190. long fhDirOffset; /*offset to directory*/
  191. long fhLength; /*length of ROM*/
  192. long fhCRC; /*CRC*/
  193. SInt8 fhROMRev; /*revision of ROM*/
  194. SInt8 fhFormat; /*format - 2*/
  195. long fhTstPat; /*test pattern*/
  196. SInt8 fhReserved; /*reserved*/
  197. SInt8 fhByteLanes; /*ByteLanes*/
  198. };
  199. typedef struct FHeaderRec FHeaderRec;
  200. typedef FHeaderRec * FHeaderRecPtr;
  201. /*
  202. Extended Format header block - extended declaration ROM format header for super sRsrc directories. <H2><SM0>
  203. */
  204. struct XFHeaderRec {
  205. long fhXSuperInit; /*Offset to SuperInit SExecBlock <fhFormat,offset>*/
  206. long fhXSDirOffset; /*Offset to SuperDirectory <$FE,offset>*/
  207. long fhXEOL; /*Psuedo end-of-list <$FF,nil>*/
  208. long fhXSTstPat; /*TestPattern*/
  209. long fhXDirOffset; /*Offset to (minimal) directory*/
  210. long fhXLength; /*Length of ROM*/
  211. long fhXCRC; /*CRC*/
  212. SInt8 fhXROMRev; /*Revision of ROM*/
  213. SInt8 fhXFormat; /*Format-2*/
  214. long fhXTstPat; /*TestPattern*/
  215. SInt8 fhXReserved; /*Reserved*/
  216. SInt8 fhXByteLanes; /*ByteLanes*/
  217. };
  218. typedef struct XFHeaderRec XFHeaderRec;
  219. typedef XFHeaderRec * XFHeaderRecPtr;
  220. struct SEBlock {
  221. UInt8 seSlot; /*Slot number.*/
  222. UInt8 sesRsrcId; /*sResource Id.*/
  223. short seStatus; /*Status of code executed by sExec.*/
  224. UInt8 seFlags; /*Flags*/
  225. UInt8 seFiller0; /*Filler, must be SignedByte to align on odd boundry*/
  226. UInt8 seFiller1; /*Filler*/
  227. UInt8 seFiller2; /*Filler*/
  228. long seResult; /*Result of sLoad.*/
  229. long seIOFileName; /*Pointer to IOFile name.*/
  230. UInt8 seDevice; /*Which device to read from.*/
  231. UInt8 sePartition; /*The partition.*/
  232. UInt8 seOSType; /*Type of OS.*/
  233. UInt8 seReserved; /*Reserved field.*/
  234. UInt8 seRefNum; /*RefNum of the driver.*/
  235. UInt8 seNumDevices; /* Number of devices to load.*/
  236. UInt8 seBootState; /*State of StartBoot code.*/
  237. SInt8 filler;
  238. };
  239. typedef struct SEBlock SEBlock;
  240. /* Principle */
  241. #if CALL_NOT_IN_CARBON
  242. /*
  243. * SReadByte()
  244. *
  245. * Availability:
  246. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  247. * CarbonLib: not available
  248. * Mac OS X: not available
  249. */
  250. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  251. #pragma parameter __D0 SReadByte(__A0)
  252. #endif
  253. EXTERN_API( OSErr )
  254. SReadByte(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7000, 0xA06E);
  255. /*
  256. * SReadWord()
  257. *
  258. * Availability:
  259. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  260. * CarbonLib: not available
  261. * Mac OS X: not available
  262. */
  263. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  264. #pragma parameter __D0 SReadWord(__A0)
  265. #endif
  266. EXTERN_API( OSErr )
  267. SReadWord(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7001, 0xA06E);
  268. /*
  269. * SReadLong()
  270. *
  271. * Availability:
  272. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  273. * CarbonLib: not available
  274. * Mac OS X: not available
  275. */
  276. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  277. #pragma parameter __D0 SReadLong(__A0)
  278. #endif
  279. EXTERN_API( OSErr )
  280. SReadLong(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7002, 0xA06E);
  281. /*
  282. * SGetCString()
  283. *
  284. * Availability:
  285. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  286. * CarbonLib: not available
  287. * Mac OS X: not available
  288. */
  289. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  290. #pragma parameter __D0 SGetCString(__A0)
  291. #endif
  292. EXTERN_API( OSErr )
  293. SGetCString(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7003, 0xA06E);
  294. /*
  295. * SGetBlock()
  296. *
  297. * Availability:
  298. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  299. * CarbonLib: not available
  300. * Mac OS X: not available
  301. */
  302. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  303. #pragma parameter __D0 SGetBlock(__A0)
  304. #endif
  305. EXTERN_API( OSErr )
  306. SGetBlock(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7005, 0xA06E);
  307. /*
  308. * SFindStruct()
  309. *
  310. * Availability:
  311. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  312. * CarbonLib: not available
  313. * Mac OS X: not available
  314. */
  315. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  316. #pragma parameter __D0 SFindStruct(__A0)
  317. #endif
  318. EXTERN_API( OSErr )
  319. SFindStruct(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7006, 0xA06E);
  320. /*
  321. * SReadStruct()
  322. *
  323. * Availability:
  324. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  325. * CarbonLib: not available
  326. * Mac OS X: not available
  327. */
  328. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  329. #pragma parameter __D0 SReadStruct(__A0)
  330. #endif
  331. EXTERN_API( OSErr )
  332. SReadStruct(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7007, 0xA06E);
  333. /* Special */
  334. /*
  335. * SReadInfo()
  336. *
  337. * Availability:
  338. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  339. * CarbonLib: not available
  340. * Mac OS X: not available
  341. */
  342. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  343. #pragma parameter __D0 SReadInfo(__A0)
  344. #endif
  345. EXTERN_API( OSErr )
  346. SReadInfo(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7010, 0xA06E);
  347. /*
  348. * SReadPRAMRec()
  349. *
  350. * Availability:
  351. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  352. * CarbonLib: not available
  353. * Mac OS X: not available
  354. */
  355. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  356. #pragma parameter __D0 SReadPRAMRec(__A0)
  357. #endif
  358. EXTERN_API( OSErr )
  359. SReadPRAMRec(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7011, 0xA06E);
  360. /*
  361. * SPutPRAMRec()
  362. *
  363. * Availability:
  364. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  365. * CarbonLib: not available
  366. * Mac OS X: not available
  367. */
  368. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  369. #pragma parameter __D0 SPutPRAMRec(__A0)
  370. #endif
  371. EXTERN_API( OSErr )
  372. SPutPRAMRec(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7012, 0xA06E);
  373. /*
  374. * SReadFHeader()
  375. *
  376. * Availability:
  377. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  378. * CarbonLib: not available
  379. * Mac OS X: not available
  380. */
  381. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  382. #pragma parameter __D0 SReadFHeader(__A0)
  383. #endif
  384. EXTERN_API( OSErr )
  385. SReadFHeader(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7013, 0xA06E);
  386. /*
  387. * SNextSRsrc()
  388. *
  389. * Availability:
  390. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  391. * CarbonLib: not available
  392. * Mac OS X: not available
  393. */
  394. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  395. #pragma parameter __D0 SNextSRsrc(__A0)
  396. #endif
  397. EXTERN_API( OSErr )
  398. SNextSRsrc(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7014, 0xA06E);
  399. /*
  400. * SNextTypeSRsrc()
  401. *
  402. * Availability:
  403. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  404. * CarbonLib: not available
  405. * Mac OS X: not available
  406. */
  407. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  408. #pragma parameter __D0 SNextTypeSRsrc(__A0)
  409. #endif
  410. EXTERN_API( OSErr )
  411. SNextTypeSRsrc(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7015, 0xA06E);
  412. /*
  413. * SRsrcInfo()
  414. *
  415. * Availability:
  416. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  417. * CarbonLib: not available
  418. * Mac OS X: not available
  419. */
  420. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  421. #pragma parameter __D0 SRsrcInfo(__A0)
  422. #endif
  423. EXTERN_API( OSErr )
  424. SRsrcInfo(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7016, 0xA06E);
  425. /*
  426. * SDisposePtr()
  427. *
  428. * Availability:
  429. * Non-Carbon CFM: not available
  430. * CarbonLib: not available
  431. * Mac OS X: not available
  432. */
  433. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  434. #pragma parameter __D0 SDisposePtr(__A0)
  435. #endif
  436. EXTERN_API( OSErr )
  437. SDisposePtr(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7017, 0xA06E);
  438. /*
  439. * SCkCardStat()
  440. *
  441. * Availability:
  442. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  443. * CarbonLib: not available
  444. * Mac OS X: not available
  445. */
  446. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  447. #pragma parameter __D0 SCkCardStat(__A0)
  448. #endif
  449. EXTERN_API( OSErr )
  450. SCkCardStat(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7018, 0xA06E);
  451. /*
  452. * SReadDrvrName()
  453. *
  454. * Availability:
  455. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  456. * CarbonLib: not available
  457. * Mac OS X: not available
  458. */
  459. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  460. #pragma parameter __D0 SReadDrvrName(__A0)
  461. #endif
  462. EXTERN_API( OSErr )
  463. SReadDrvrName(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7019, 0xA06E);
  464. /*
  465. * SFindSRTRec()
  466. *
  467. * Availability:
  468. * Non-Carbon CFM: not available
  469. * CarbonLib: not available
  470. * Mac OS X: not available
  471. */
  472. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  473. #pragma parameter __D0 SFindSRTRec(__A0)
  474. #endif
  475. EXTERN_API( OSErr )
  476. SFindSRTRec(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x701A, 0xA06E);
  477. /*
  478. * SFindDevBase()
  479. *
  480. * Availability:
  481. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  482. * CarbonLib: not available
  483. * Mac OS X: not available
  484. */
  485. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  486. #pragma parameter __D0 SFindDevBase(__A0)
  487. #endif
  488. EXTERN_API( OSErr )
  489. SFindDevBase(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x701B, 0xA06E);
  490. /*
  491. * SFindBigDevBase()
  492. *
  493. * Availability:
  494. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  495. * CarbonLib: not available
  496. * Mac OS X: not available
  497. */
  498. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  499. #pragma parameter __D0 SFindBigDevBase(__A0)
  500. #endif
  501. EXTERN_API( OSErr )
  502. SFindBigDevBase(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x701C, 0xA06E);
  503. /* Advanced */
  504. /*
  505. * InitSDeclMgr()
  506. *
  507. * Availability:
  508. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  509. * CarbonLib: not available
  510. * Mac OS X: not available
  511. */
  512. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  513. #pragma parameter __D0 InitSDeclMgr(__A0)
  514. #endif
  515. EXTERN_API( OSErr )
  516. InitSDeclMgr(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7020, 0xA06E);
  517. /*
  518. * SPrimaryInit()
  519. *
  520. * Availability:
  521. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  522. * CarbonLib: not available
  523. * Mac OS X: not available
  524. */
  525. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  526. #pragma parameter __D0 SPrimaryInit(__A0)
  527. #endif
  528. EXTERN_API( OSErr )
  529. SPrimaryInit(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7021, 0xA06E);
  530. /*
  531. * SCardChanged()
  532. *
  533. * Availability:
  534. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  535. * CarbonLib: not available
  536. * Mac OS X: not available
  537. */
  538. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  539. #pragma parameter __D0 SCardChanged(__A0)
  540. #endif
  541. EXTERN_API( OSErr )
  542. SCardChanged(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7022, 0xA06E);
  543. /*
  544. * SExec()
  545. *
  546. * Availability:
  547. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  548. * CarbonLib: not available
  549. * Mac OS X: not available
  550. */
  551. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  552. #pragma parameter __D0 SExec(__A0)
  553. #endif
  554. EXTERN_API( OSErr )
  555. SExec(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7023, 0xA06E);
  556. /*
  557. * SOffsetData()
  558. *
  559. * Availability:
  560. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  561. * CarbonLib: not available
  562. * Mac OS X: not available
  563. */
  564. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  565. #pragma parameter __D0 SOffsetData(__A0)
  566. #endif
  567. EXTERN_API( OSErr )
  568. SOffsetData(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7024, 0xA06E);
  569. /*
  570. * SInitPRAMRecs()
  571. *
  572. * Availability:
  573. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  574. * CarbonLib: not available
  575. * Mac OS X: not available
  576. */
  577. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  578. #pragma parameter __D0 SInitPRAMRecs(__A0)
  579. #endif
  580. EXTERN_API( OSErr )
  581. SInitPRAMRecs(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7025, 0xA06E);
  582. /*
  583. * SReadPBSize()
  584. *
  585. * Availability:
  586. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  587. * CarbonLib: not available
  588. * Mac OS X: not available
  589. */
  590. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  591. #pragma parameter __D0 SReadPBSize(__A0)
  592. #endif
  593. EXTERN_API( OSErr )
  594. SReadPBSize(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7026, 0xA06E);
  595. /*
  596. * SCalcStep()
  597. *
  598. * Availability:
  599. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  600. * CarbonLib: not available
  601. * Mac OS X: not available
  602. */
  603. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  604. #pragma parameter __D0 SCalcStep(__A0)
  605. #endif
  606. EXTERN_API( OSErr )
  607. SCalcStep(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7028, 0xA06E);
  608. /*
  609. * SInitSRsrcTable()
  610. *
  611. * Availability:
  612. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  613. * CarbonLib: not available
  614. * Mac OS X: not available
  615. */
  616. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  617. #pragma parameter __D0 SInitSRsrcTable(__A0)
  618. #endif
  619. EXTERN_API( OSErr )
  620. SInitSRsrcTable(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7029, 0xA06E);
  621. /*
  622. * SSearchSRT()
  623. *
  624. * Availability:
  625. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  626. * CarbonLib: not available
  627. * Mac OS X: not available
  628. */
  629. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  630. #pragma parameter __D0 SSearchSRT(__A0)
  631. #endif
  632. EXTERN_API( OSErr )
  633. SSearchSRT(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x702A, 0xA06E);
  634. /*
  635. * SUpdateSRT()
  636. *
  637. * Availability:
  638. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  639. * CarbonLib: not available
  640. * Mac OS X: not available
  641. */
  642. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  643. #pragma parameter __D0 SUpdateSRT(__A0)
  644. #endif
  645. EXTERN_API( OSErr )
  646. SUpdateSRT(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x702B, 0xA06E);
  647. /*
  648. * SCalcSPointer()
  649. *
  650. * Availability:
  651. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  652. * CarbonLib: not available
  653. * Mac OS X: not available
  654. */
  655. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  656. #pragma parameter __D0 SCalcSPointer(__A0)
  657. #endif
  658. EXTERN_API( OSErr )
  659. SCalcSPointer(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x702C, 0xA06E);
  660. /*
  661. * SGetDriver()
  662. *
  663. * Availability:
  664. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  665. * CarbonLib: not available
  666. * Mac OS X: not available
  667. */
  668. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  669. #pragma parameter __D0 SGetDriver(__A0)
  670. #endif
  671. EXTERN_API( OSErr )
  672. SGetDriver(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x702D, 0xA06E);
  673. /*
  674. * SPtrToSlot()
  675. *
  676. * Availability:
  677. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  678. * CarbonLib: not available
  679. * Mac OS X: not available
  680. */
  681. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  682. #pragma parameter __D0 SPtrToSlot(__A0)
  683. #endif
  684. EXTERN_API( OSErr )
  685. SPtrToSlot(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x702E, 0xA06E);
  686. /*
  687. * SFindSInfoRecPtr()
  688. *
  689. * Availability:
  690. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  691. * CarbonLib: not available
  692. * Mac OS X: not available
  693. */
  694. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  695. #pragma parameter __D0 SFindSInfoRecPtr(__A0)
  696. #endif
  697. EXTERN_API( OSErr )
  698. SFindSInfoRecPtr(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x702F, 0xA06E);
  699. /*
  700. * SFindSRsrcPtr()
  701. *
  702. * Availability:
  703. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  704. * CarbonLib: not available
  705. * Mac OS X: not available
  706. */
  707. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  708. #pragma parameter __D0 SFindSRsrcPtr(__A0)
  709. #endif
  710. EXTERN_API( OSErr )
  711. SFindSRsrcPtr(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7030, 0xA06E);
  712. /*
  713. * SDeleteSRTRec()
  714. *
  715. * Availability:
  716. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  717. * CarbonLib: not available
  718. * Mac OS X: not available
  719. */
  720. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  721. #pragma parameter __D0 SDeleteSRTRec(__A0)
  722. #endif
  723. EXTERN_API( OSErr )
  724. SDeleteSRTRec(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7031, 0xA06E);
  725. #endif /* CALL_NOT_IN_CARBON */
  726. #if CALL_NOT_IN_CARBON
  727. /*
  728. * OpenSlot()
  729. *
  730. * Availability:
  731. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  732. * CarbonLib: not available
  733. * Mac OS X: not available
  734. */
  735. EXTERN_API( OSErr )
  736. OpenSlot(
  737. ParmBlkPtr paramBlock,
  738. Boolean async);
  739. /*
  740. * OpenSlotSync()
  741. *
  742. * Availability:
  743. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  744. * CarbonLib: not available
  745. * Mac OS X: not available
  746. */
  747. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  748. #pragma parameter __D0 OpenSlotSync(__A0)
  749. #endif
  750. EXTERN_API( OSErr )
  751. OpenSlotSync(ParmBlkPtr paramBlock) ONEWORDINLINE(0xA200);
  752. /*
  753. * OpenSlotAsync()
  754. *
  755. * Availability:
  756. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  757. * CarbonLib: not available
  758. * Mac OS X: not available
  759. */
  760. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  761. #pragma parameter __D0 OpenSlotAsync(__A0)
  762. #endif
  763. EXTERN_API( OSErr )
  764. OpenSlotAsync(ParmBlkPtr paramBlock) ONEWORDINLINE(0xA600);
  765. /* Device Manager Slot Support */
  766. /*
  767. * SIntInstall()
  768. *
  769. * Availability:
  770. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  771. * CarbonLib: not available
  772. * Mac OS X: not available
  773. */
  774. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  775. #pragma parameter __D0 SIntInstall(__A0, __D0)
  776. #endif
  777. EXTERN_API( OSErr )
  778. SIntInstall(
  779. SQElemPtr sIntQElemPtr,
  780. short theSlot) ONEWORDINLINE(0xA075);
  781. /*
  782. * SIntRemove()
  783. *
  784. * Availability:
  785. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  786. * CarbonLib: not available
  787. * Mac OS X: not available
  788. */
  789. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  790. #pragma parameter __D0 SIntRemove(__A0, __D0)
  791. #endif
  792. EXTERN_API( OSErr )
  793. SIntRemove(
  794. SQElemPtr sIntQElemPtr,
  795. short theSlot) ONEWORDINLINE(0xA076);
  796. /*
  797. * SVersion()
  798. *
  799. * Availability:
  800. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  801. * CarbonLib: not available
  802. * Mac OS X: not available
  803. */
  804. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  805. #pragma parameter __D0 SVersion(__A0)
  806. #endif
  807. EXTERN_API( OSErr )
  808. SVersion(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7008, 0xA06E);
  809. /*
  810. * SetSRsrcState()
  811. *
  812. * Availability:
  813. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  814. * CarbonLib: not available
  815. * Mac OS X: not available
  816. */
  817. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  818. #pragma parameter __D0 SetSRsrcState(__A0)
  819. #endif
  820. EXTERN_API( OSErr )
  821. SetSRsrcState(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x7009, 0xA06E);
  822. /*
  823. * InsertSRTRec()
  824. *
  825. * Availability:
  826. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  827. * CarbonLib: not available
  828. * Mac OS X: not available
  829. */
  830. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  831. #pragma parameter __D0 InsertSRTRec(__A0)
  832. #endif
  833. EXTERN_API( OSErr )
  834. InsertSRTRec(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x700A, 0xA06E);
  835. /*
  836. * SGetSRsrc()
  837. *
  838. * Availability:
  839. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  840. * CarbonLib: not available
  841. * Mac OS X: not available
  842. */
  843. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  844. #pragma parameter __D0 SGetSRsrc(__A0)
  845. #endif
  846. EXTERN_API( OSErr )
  847. SGetSRsrc(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x700B, 0xA06E);
  848. /*
  849. * SGetTypeSRsrc()
  850. *
  851. * Availability:
  852. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  853. * CarbonLib: not available
  854. * Mac OS X: not available
  855. */
  856. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  857. #pragma parameter __D0 SGetTypeSRsrc(__A0)
  858. #endif
  859. EXTERN_API( OSErr )
  860. SGetTypeSRsrc(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x700C, 0xA06E);
  861. /*
  862. * SGetSRsrcPtr()
  863. *
  864. * Availability:
  865. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  866. * CarbonLib: not available
  867. * Mac OS X: not available
  868. */
  869. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  870. #pragma parameter __D0 SGetSRsrcPtr(__A0)
  871. #endif
  872. EXTERN_API( OSErr )
  873. SGetSRsrcPtr(SpBlockPtr spBlkPtr) TWOWORDINLINE(0x701D, 0xA06E);
  874. #endif /* CALL_NOT_IN_CARBON */
  875. #if PRAGMA_STRUCT_ALIGN
  876. #pragma options align=reset
  877. #elif PRAGMA_STRUCT_PACKPUSH
  878. #pragma pack(pop)
  879. #elif PRAGMA_STRUCT_PACK
  880. #pragma pack()
  881. #endif
  882. #ifdef PRAGMA_IMPORT_OFF
  883. #pragma import off
  884. #elif PRAGMA_IMPORT
  885. #pragma import reset
  886. #endif
  887. #ifdef __cplusplus
  888. }
  889. #endif
  890. #endif /* __SLOTS__ */