Mac OS 9
SocketServices.h
Go to the documentation of this file.
1 
19 #ifndef __SOCKETSERVICES__
20 #define __SOCKETSERVICES__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #ifndef __MIXEDMODE__
27 #include <MixedMode.h>
28 #endif
29 
30 #if PRAGMA_ONCE
31 #pragma once
32 #endif
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39 #if PRAGMA_IMPORT
40 #pragma import on
41 #endif
42 
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
46 #pragma pack(push, 2)
47 #elif PRAGMA_STRUCT_PACK
48 #pragma pack(2)
49 #endif
50 
53 
56  typedef Byte SS_BYTE;
57  typedef Byte SS_FLAGS8;
58  typedef Byte SS_IRQ;
59  typedef Byte SS_PWRLEVEL;
60  typedef UInt16 SS_ADAPTER;
61  typedef UInt16 SS_BCD;
62  typedef UInt16 SS_COUNT;
63  typedef UInt16 SS_EDC;
64  typedef UInt16 SS_FLAGS16;
65  typedef UInt16 SS_PAGE;
66  typedef UInt16 SS_PWRINDEX;
67  typedef UInt16 SS_SIGNATURE;
68  typedef UInt16 SS_SKTBITS;
69  typedef UInt16 SS_SOCKET;
70  typedef UInt16 SS_SPEED;
71  typedef UInt16 SS_WINDOW;
72  typedef UInt16 SS_WORD;
73  typedef UInt32 SS_BASE;
74  typedef UInt32 SS_FLAGS32;
75  typedef UInt32 SS_OFFSET;
76  typedef UInt32 SS_SIZE;
77  typedef Ptr SS_PTR;
78  typedef OSErr SS_RETCODE;
79  struct SS_SCHARTBL
80  {
81  UInt16 sktCaps;
82  UInt32 activeHigh;
83  UInt32 activeLow;
84  };
85  typedef struct SS_SCHARTBL SS_SCHARTBL;
86  struct SS_SISTRUCT
87  {
88  UInt16 bufferLength;
89  UInt16 dataLength;
91  };
92  typedef struct SS_SISTRUCT SS_SISTRUCT;
93  enum
94  {
95  STR_SIZE = 24
96  };
97 
99  struct SS_VISTRUCT
100  {
101  UInt16 bufferLength;
102  UInt16 dataLength;
103  char szImplementor[1];
104  Byte padding[1];
105  };
106  typedef struct SS_VISTRUCT SS_VISTRUCT;
107  struct SS_ACHARTBL
108  {
109  UInt16 adpCaps;
110  UInt32 activeHigh;
111  UInt32 activeLow;
112  };
113  typedef struct SS_ACHARTBL SS_ACHARTBL;
114  struct SS_PWRENTRY
115  {
116  Byte powerLevel;
118  };
119  typedef struct SS_PWRENTRY SS_PWRENTRY;
120  struct SS_AISTRUCT
121  {
122  UInt16 bufferLength;
123  UInt16 dataLength;
125  UInt16 numPwrEntries;
127  };
128  typedef struct SS_AISTRUCT SS_AISTRUCT;
130  {
131  UInt16 memWndCaps;
132  UInt32 firstByte;
133  UInt32 lastByte;
134  UInt32 minSize;
135  UInt32 maxSize;
136  UInt32 reqGran;
137  UInt32 reqBase;
138  UInt32 reqOffset;
139  UInt16 slowest;
140  UInt16 fastest;
141  };
142  typedef struct SS_MEMWINTBL SS_MEMWINTBL;
143  struct SS_IOWINTBL
144  {
145  UInt16 ioWndCaps;
146  UInt32 firstByte;
147  UInt32 lastByte;
148  UInt32 minSize;
149  UInt32 maxSize;
150  UInt32 reqGran;
151  UInt16 addrLines;
152  Byte eisaSlot;
153  Byte padding[1];
154  };
155  typedef struct SS_IOWINTBL SS_IOWINTBL;
156  struct SS_WISTRUCT
157  {
158  UInt16 bufferLength;
159  UInt16 dataLength;
160  UInt16 numTblEntries;
162  SS_IOWINTBL ioWinTbl;
163  };
164  typedef struct SS_WISTRUCT SS_WISTRUCT;
165 
169  enum
170  {
171  fnSSGetAdapterCount = 0x80,
172  fnSSUnsupported81 = 0x81,
173  fnSSUnsupported82 = 0x82,
174  fnSSGetSSInfo = 0x83,
175  fnSSInquireAdapter = 0x84,
176  fnSSGetAdapter = 0x85,
177  fnSSSetAdapter = 0x86,
178  fnSSInquireWindow = 0x87,
179  fnSSGetWindow = 0x88,
180  fnSSSetWindow = 0x89,
181  fnSSGetPage = 0x8A,
182  fnSSSetPage = 0x8B,
183  fnSSInquireSocket = 0x8C,
184  fnSSGetSocket = 0x8D,
185  fnSSSetSocket = 0x8E,
186  fnSSGetStatus = 0x8F,
187  fnSSResetSocket = 0x90,
188  fnSSUnsupported91 = 0x91,
189  fnSSUnsupported92 = 0x92,
190  fnSSUnsupported93 = 0x93,
191  fnSSUnsupported94 = 0x94,
192  fnSSInquireEDC = 0x95,
193  fnSSGetEDC = 0x96,
194  fnSSSetEDC = 0x97,
195  fnSSStartEDC = 0x98,
196  fnSSPauseEDC = 0x99,
197  fnSSResumeEDC = 0x9A,
198  fnSSStopEDC = 0x9B,
199  fnSSReadEDC = 0x9C,
200  fnSSGetVendorInfo = 0x9D,
201  fnSSAcknowledgeInterrupt = 0x9E,
202  fnSSGetSetPriorHandler = 0x9F,
203  fnSSGetSetSSAddr = 0xA0,
204  fnSSGetAccessOffsets = 0xA1,
205  fnSSUnsupportedA2 = 0xA2,
206  fnSSUnsupportedA3 = 0xA3,
207  fnSSUnsupportedA4 = 0xA4,
208  fnSSUnsupportedA5 = 0xA5,
209  fnSSUnsupportedA6 = 0xA6,
210  fnSSUnsupportedA7 = 0xA7,
211  fnSSUnsupportedA8 = 0xA8,
212  fnSSUnsupportedA9 = 0xA9,
213  fnSSUnsupportedAA = 0xAA,
214  fnSSUnsupportedAB = 0xAB,
215  fnSSUnsupportedAC = 0xAC,
216  fnSSUnsupportedAD = 0xAD,
217  fnSSVendorSpecific = 0xAE
218  };
219 
222  enum
223  {
224  fnVSReserved = 0x00,
225  fnVSGetSocketLocationIcon = 0x01,
226  fnVSGetSocketLocationText = 0x02,
227  fnVSDoSocketLocalization = 0x03,
228  fnVSAppleSocketCapabilities = 0x04,
229  fnVSSleepWakeNotification = 0x05
230  };
231 
235  enum
236  {
237  AC_IND = 1,
238  AC_PWR = 2,
239  AC_DBW = 4
240  };
241 
242  enum
243  {
244  AS_POWERDOWN = 1,
245  AS_MAINTAIN = 2
246  };
247 
248  enum
249  {
250  EC_UNI = 1,
251  EC_BI = 2,
252  EC_REGISTER = 4,
253  EC_MEMORY = 8,
254  EC_PAUSABLE = 16,
255  EC_WRITE = 16
256  };
257 
258  enum
259  {
260  ET_CHECK8 = 1,
261  ET_SDLC16 = 2
262  };
263 
264  enum
265  {
266  IF_MEMORY = 1,
267  IF_IO = 2
268  };
269 
270  enum
271  {
272  IRQ_HIGH = 64,
273  IRQ_ENABLE = 128
274  };
275 
276  enum
277  {
278  IRQ_MEMORY = 4,
279  IRQ_IO = 4
280  };
281 
282  enum
283  {
284  PS_ATTRIBUTE = 0x01,
285  PS_ENABLED = 0x02,
286  PS_WP = 0x04
287  };
288 
289  enum
290  {
291  PWR_VCC = 128,
292  PWR_VPP1 = 64,
293  PWR_VPP2 = 32
294  };
295 
296  enum
297  {
298  SBM_WP = 1,
299  SBM_LOCKED = 2,
300  SBM_EJECT = 4,
301  SBM_INSERT = 8,
302  SBM_BVD1 = 16,
303  SBM_BVD2 = 32,
304  SBM_RDYBSY = 64,
305  SBM_CD = 128
306  };
307 
308  enum
309  {
310  SBM_LOCK = 16,
311  SBM_BATT = 32,
312  SBM_BUSY = 64,
313  SBM_XIP = 128
314  };
315 
317  enum
318  {
319  SBM_SLEEP_PWR = 1
320  };
321 
322  enum
323  {
324  WC_COMMON = 1,
325  WC_IO = 2,
326  WC_ATTRIBUTE = 4,
327  WC_TYPE_MASK = 7,
328  WC_WAIT = 128
329  };
330 
331  enum
332  {
333  WC_BASE = 1,
334  WC_SIZE = 2,
335  WC_WENABLE = 4,
336  WC_8BIT = 8,
337  WC_16BIT = 16,
338  WC_BALIGN = 32,
339  WC_POW2 = 64,
340  WC_CALIGN = 128,
341  WC_PAVAIL = 256,
342  WC_PSHARED = 512,
343  WC_PENABLE = 1024,
344  WC_WP = 2048
345  };
346 
347  enum
348  {
349  WC_INPACK = 128,
350  WC_EISA = 256,
351  WC_CENABLE = 512
352  };
353 
354  enum
355  {
356  WS_IO = 1,
357  WS_ENABLED = 2,
358  WS_16BIT = 4
359  };
360 
361  enum
362  {
363  WS_PAGED = 8,
364  WS_EISA = 16,
365  WS_CENABLE = 32,
366  WS_SWAP_LITTLE_TO_BIG_ENDIAN = 64
367  };
368 
369  enum
370  {
371  SS_SIG_VALUE = 0x5353
372  };
373 
374  enum
375  {
376  SS_CMPL_1_00 = 0x0100,
377  SS_CMPL_1_01 = 0x0101,
378  SS_CMPL_2_00 = 0x0200,
379  SS_CMPL_2_10 = 0x0210
380  };
381 
385  typedef CALLBACK_API(short, PCCardSSEntryProcPtr)(UInt16 fnCode, Ptr callPB,
386  Ptr dataPtr);
387  typedef STACK_UPP_TYPE(PCCardSSEntryProcPtr) PCCardSSEntryUPP;
388 #if CALL_NOT_IN_CARBON
397  PCCardSSEntryUPP
398  NewPCCardSSEntryUPP(PCCardSSEntryProcPtr userRoutine);
399 #if !OPAQUE_UPP_TYPES
400  enum
401  {
402  uppPCCardSSEntryProcInfo = 0x00000FA0
403  };
404 #ifdef __cplusplus
405  inline PCCardSSEntryUPP NewPCCardSSEntryUPP(PCCardSSEntryProcPtr userRoutine)
406  {
407  return (PCCardSSEntryUPP)NewRoutineDescriptor((ProcPtr)(userRoutine),
408  uppPCCardSSEntryProcInfo,
409  GetCurrentArchitecture());
410  }
411 #else
412 #define NewPCCardSSEntryUPP(userRoutine) \
413  (PCCardSSEntryUPP) \
414  NewRoutineDescriptor((ProcPtr)(userRoutine), uppPCCardSSEntryProcInfo, \
415  GetCurrentArchitecture())
416 #endif
417 #endif
418 
427  void
428  DisposePCCardSSEntryUPP(PCCardSSEntryUPP userUPP);
429 #if !OPAQUE_UPP_TYPES
430 #ifdef __cplusplus
431  inline void DisposePCCardSSEntryUPP(PCCardSSEntryUPP userUPP)
432  {
433  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
434  }
435 #else
436 #define DisposePCCardSSEntryUPP(userUPP) DisposeRoutineDescriptor(userUPP)
437 #endif
438 #endif
439 
448  short
449  InvokePCCardSSEntryUPP(UInt16 fnCode, Ptr callPB, Ptr dataPtr,
450  PCCardSSEntryUPP userUPP);
451 #if !OPAQUE_UPP_TYPES
452 #ifdef __cplusplus
453  inline short InvokePCCardSSEntryUPP(UInt16 fnCode, Ptr callPB, Ptr dataPtr,
454  PCCardSSEntryUPP userUPP)
455  {
456  return (short)CALL_THREE_PARAMETER_UPP(userUPP, uppPCCardSSEntryProcInfo,
457  fnCode, callPB, dataPtr);
458  }
459 #else
460 #define InvokePCCardSSEntryUPP(fnCode, callPB, dataPtr, userUPP) \
461  (short)CALL_THREE_PARAMETER_UPP((userUPP), uppPCCardSSEntryProcInfo, \
462  (fnCode), (callPB), (dataPtr))
463 #endif
464 #endif
465 
466 #endif
468 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
470 #define NewPCCardSSEntryProc(userRoutine) NewPCCardSSEntryUPP(userRoutine)
471 #define CallPCCardSSEntryProc(userRoutine, fnCode, callPB, dataPtr) \
472  InvokePCCardSSEntryUPP(fnCode, callPB, dataPtr, userRoutine)
473 #endif
479  {
480  UInt32 ssHandlerID;
481  UInt16 adapter;
482  UInt16 socket;
483  UInt16 message;
484  Byte intrpBits;
485  Byte padding;
486  };
487  typedef struct CSEventEntryPB CSEventEntryPB;
488  typedef CALLBACK_API(void, PCCardCSEntryProcPtr)(CSEventEntryPB *pb);
489  typedef STACK_UPP_TYPE(PCCardCSEntryProcPtr) PCCardCSEntryUPP;
490 #if CALL_NOT_IN_CARBON
499  PCCardCSEntryUPP
500  NewPCCardCSEntryUPP(PCCardCSEntryProcPtr userRoutine);
501 #if !OPAQUE_UPP_TYPES
502  enum
503  {
504  uppPCCardCSEntryProcInfo = 0x000000C0
505  };
506 #ifdef __cplusplus
507  inline PCCardCSEntryUPP NewPCCardCSEntryUPP(PCCardCSEntryProcPtr userRoutine)
508  {
509  return (PCCardCSEntryUPP)NewRoutineDescriptor((ProcPtr)(userRoutine),
510  uppPCCardCSEntryProcInfo,
511  GetCurrentArchitecture());
512  }
513 #else
514 #define NewPCCardCSEntryUPP(userRoutine) \
515  (PCCardCSEntryUPP) \
516  NewRoutineDescriptor((ProcPtr)(userRoutine), uppPCCardCSEntryProcInfo, \
517  GetCurrentArchitecture())
518 #endif
519 #endif
520 
529  void
530  DisposePCCardCSEntryUPP(PCCardCSEntryUPP userUPP);
531 #if !OPAQUE_UPP_TYPES
532 #ifdef __cplusplus
533  inline void DisposePCCardCSEntryUPP(PCCardCSEntryUPP userUPP)
534  {
535  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
536  }
537 #else
538 #define DisposePCCardCSEntryUPP(userUPP) DisposeRoutineDescriptor(userUPP)
539 #endif
540 #endif
541 
550  void
551  InvokePCCardCSEntryUPP(CSEventEntryPB *pb, PCCardCSEntryUPP userUPP);
552 #if !OPAQUE_UPP_TYPES
553 #ifdef __cplusplus
555  PCCardCSEntryUPP userUPP)
556  {
557  CALL_ONE_PARAMETER_UPP(userUPP, uppPCCardCSEntryProcInfo, pb);
558  }
559 #else
560 #define InvokePCCardCSEntryUPP(pb, userUPP) \
561  CALL_ONE_PARAMETER_UPP((userUPP), uppPCCardCSEntryProcInfo, (pb))
562 #endif
563 #endif
564 
565 #endif
567 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
569 #define NewPCCardCSEntryProc(userRoutine) NewPCCardCSEntryUPP(userRoutine)
570 #define CallPCCardCSEntryProc(userRoutine, pb) \
571  InvokePCCardCSEntryUPP(pb, userRoutine)
572 #endif
577  {
578  PCCardSSEntryUPP ssEntry;
579  PCCardCSEntryUPP csEntry;
581  UInt32 dataPtr;
582  UInt32 attributes;
583  UInt16 numAdapters;
584  UInt16 numSockets;
585  };
590  {
591  PCCardSSEntryUPP ssEntry;
592  PCCardSSEntryUPP oldSSEntry;
593 
594  UInt32 dataPtr;
595  UInt16 socket;
596  UInt16 numSockets;
597  UInt16 attributes;
598  };
600 #if CALL_NOT_IN_CARBON
609  OSErr
611 
620  OSErr
622 
626 #endif
629  {
630  UInt16 adapter;
631  UInt16 sockets;
632  };
635  {
636  UInt16 adapter;
637  Byte mode;
638  Byte reserved;
639  UInt16 count;
640  Ptr buffer;
641  UInt16 numAvail;
642  };
645  {
646  UInt16 totalAdapters;
647  UInt16 sig;
648  };
651  {
652  UInt16 adapter;
653  Byte state;
654  Byte irqStatus;
655  };
656  typedef struct SSGetSetAdapterPB SSGetSetAdapterPB;
658  {
659  UInt16 adapter;
660  UInt16 edc;
661  UInt16 socket;
662  Byte state;
663  Byte edcType;
664  };
665  typedef struct SSGetSetEDCPB SSGetSetEDCPB;
667  {
668  UInt16 adapter;
669  UInt16 window;
670  UInt16 page;
671  Byte state;
672  Byte reserved;
673  UInt32 offset;
674  };
675  typedef struct SSGetSetPagePB SSGetSetPagePB;
677  {
678  UInt16 adapter;
679  Byte mode;
680  Byte reserved;
681  Ptr handler;
682  };
685  {
686  UInt16 adapter;
687  UInt16 socket;
688  UInt16 vccIndex;
689  UInt16 vpp1Index;
690  UInt16 vpp2Index;
691  Byte scIntMask;
692  Byte state;
693  Byte ctlInd;
694  Byte ireqRouting;
695  Byte ifType;
696  Byte padding[1];
697  };
698  typedef struct SSGetSetSocketPB SSGetSetSocketPB;
700  {
701  UInt16 adapter;
702  Byte mode;
703  Byte subfunc;
704  UInt16 numAddData;
705  Ptr buffer;
706  };
707  typedef struct SSGetSetSSAddrPB SSGetSetSSAddrPB;
709  {
710  UInt16 adapter;
711  UInt16 window;
712  UInt16 socket;
713  UInt32 size;
714  Byte state;
715  Byte reserved;
716  UInt16 speed;
717  UInt32 base;
718  };
719  typedef struct SSGetSetWindowPB SSGetSetWindowPB;
721  {
722  UInt16 adapter;
723  UInt16 compliance;
724  UInt16 numAdapters;
725  UInt16 firstAdapter;
726  };
727  typedef struct SSGetSSInfoPB SSGetSSInfoPB;
729  {
730  UInt16 adapter;
731  UInt16 socket;
732  Byte cardState;
733  Byte socketState;
734  Byte ctlInd;
735  Byte ireqRouting;
736  Byte ifType;
737  Byte padding[1];
738  };
739  typedef struct SSGetStatusPB SSGetStatusPB;
741  {
742  UInt16 adapter;
744  Byte reserved;
745  Ptr buffer;
746  UInt16 release;
747  };
748  typedef struct SSGetVendorInfoPB SSGetVendorInfoPB;
750  {
751  UInt16 adapter;
752  Ptr buffer;
753  UInt16 numSockets;
754  UInt16 numWindows;
755  UInt16 numEDCs;
756  };
757  typedef struct SSInquireAdapterPB SSInquireAdapterPB;
759  {
760  UInt16 adapter;
761  UInt16 edc;
762  UInt16 sockets;
763  Byte caps;
764  Byte types;
765  };
766  typedef struct SSInquireEDCPB SSInquireEDCPB;
768  {
769  UInt16 adapter;
770  UInt16 socket;
771  Ptr buffer;
772  Byte scIntCaps;
773  Byte scRptCaps;
774  Byte ctlIndCaps;
775  Byte padding[1];
776  };
777  typedef struct SSInquireSocketPB SSInquireSocketPB;
779  {
780  UInt16 adapter;
781  UInt16 window;
782  Ptr buffer;
783  Byte wndCaps;
784  Byte reserved;
785  UInt16 sockets;
786  };
787  typedef struct SSInquireWindowPB SSInquireWindowPB;
789  {
790  UInt16 adapter;
791  UInt16 edc;
792  };
793  typedef struct SSPauseEDCPB SSPauseEDCPB;
794  struct SSReadEDCPB
795  {
796  UInt16 adapter;
797  UInt16 edc;
798  UInt16 value;
799  };
800  typedef struct SSReadEDCPB SSReadEDCPB;
802  {
803  UInt16 adapter;
804  UInt16 socket;
805  };
806  typedef struct SSResetSocketPB SSResetSocketPB;
808  {
809  UInt16 adapter;
810  UInt16 edc;
811  };
812  typedef struct SSResumeEDCPB SSResumeEDCPB;
814  {
815  UInt16 adapter;
816  UInt16 edc;
817  };
818  typedef struct SSStartEDCPB SSStartEDCPB;
819  struct SSStopEDCPB
820  {
821  UInt16 adapter;
822  UInt16 edc;
823  };
824  typedef struct SSStopEDCPB SSStopEDCPB;
826  {
827  UInt16 vsFunction;
828  UInt16 adapter;
829  UInt16 socket;
830  UInt16 bufferSize;
831  Ptr buffer;
832  UInt32 attributes;
833  };
834  typedef struct SSVendorSpecificPB SSVendorSpecificPB;
836  enum
837  {
838  kSSGoingToSleep = 0x00000001,
839  kSSWakingFromSleep = 0x00000002
840  };
841 
845 #if CALL_NOT_IN_CARBON
854  SS_RETCODE
856 
868  SS_RETCODE
870 
879  SS_RETCODE
881 
890  SS_RETCODE
892 
901  SS_RETCODE
903 
912  SS_RETCODE
914 
923  SS_RETCODE
924  SSGetSSInfo(SSGetSSInfoPB *pb, Ptr dataPtr);
925 
934  SS_RETCODE
936 
945  SS_RETCODE
947 
956  SS_RETCODE
958 
967  SS_RETCODE
969 
981  SS_RETCODE
983 
992  SS_RETCODE
993  SSGetStatus(SSGetStatusPB *pb, Ptr dataPtr);
994 
1003  SS_RETCODE
1005 
1014  SS_RETCODE
1016 
1025  SS_RETCODE
1027 
1039  SS_RETCODE
1040  SSGetPage(SSGetSetPagePB *pb, Ptr dataPtr);
1041 
1050  SS_RETCODE
1052 
1061  SS_RETCODE
1063 
1072  SS_RETCODE
1073  SSSetPage(SSGetSetPagePB *pb, Ptr dataPtr);
1074 
1083  SS_RETCODE
1085 
1097  SS_RETCODE
1098  SSGetEDC(SSGetSetEDCPB *pb, Ptr dataPtr);
1099 
1108  SS_RETCODE
1110 
1119  SS_RETCODE
1120  SSPauseEDC(SSPauseEDCPB *pb, Ptr dataPtr);
1121 
1130  SS_RETCODE
1131  SSReadEDC(SSReadEDCPB *pb, Ptr dataPtr);
1132 
1141  SS_RETCODE
1142  SSResumeEDC(SSResumeEDCPB *pb, Ptr dataPtr);
1143 
1152  SS_RETCODE
1153  SSSetEDC(SSGetSetEDCPB *pb, Ptr dataPtr);
1154 
1163  SS_RETCODE
1164  SSStartEDC(SSStartEDCPB *pb, Ptr dataPtr);
1165 
1174  SS_RETCODE
1175  SSStopEDC(SSStopEDCPB *pb, Ptr dataPtr);
1176 
1177 #endif
1179 #if PRAGMA_STRUCT_ALIGN
1180 #pragma options align = reset
1181 #elif PRAGMA_STRUCT_PACKPUSH
1182 #pragma pack(pop)
1183 #elif PRAGMA_STRUCT_PACK
1184 #pragma pack()
1185 #endif
1186 
1187 #ifdef PRAGMA_IMPORT_OFF
1188 #pragma import off
1189 #elif PRAGMA_IMPORT
1190 #pragma import reset
1191 #endif
1192 
1193 #ifdef __cplusplus
1194 }
1195 #endif
1196 
1197 #endif
Basic Macintosh data types.
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
SS_RETCODE SSGetSocket(SSGetSetSocketPB *pb, Ptr dataPtr)
SS_RETCODE SSGetVendorInfo(SSGetVendorInfoPB *pb, Ptr dataPtr)
SS_RETCODE SSInquireWindow(SSInquireWindowPB *pb, Ptr dataPtr)
SS_RETCODE SSSetSocket(SSGetSetSocketPB *pb, Ptr dataPtr)
void DisposePCCardCSEntryUPP(PCCardCSEntryUPP userUPP)
SS_RETCODE SSStartEDC(SSStartEDCPB *pb, Ptr dataPtr)
SS_RETCODE SSInquireEDC(SSInquireEDCPB *pb, Ptr dataPtr)
OSErr CSAddSocketServices(AddSocketServicesPB *pb)
SS_RETCODE SSGetPage(SSGetSetPagePB *pb, Ptr dataPtr)
SS_RETCODE SSSetEDC(SSGetSetEDCPB *pb, Ptr dataPtr)
#define NewPCCardSSEntryUPP(userRoutine)
Definition: SocketServices.h:412
#define NewPCCardCSEntryUPP(userRoutine)
Definition: SocketServices.h:514
SS_RETCODE SSGetSSInfo(SSGetSSInfoPB *pb, Ptr dataPtr)
SS_RETCODE SSReadEDC(SSReadEDCPB *pb, Ptr dataPtr)
SS_RETCODE SSSetPage(SSGetSetPagePB *pb, Ptr dataPtr)
SS_RETCODE SSGetWindow(SSGetSetWindowPB *pb, Ptr dataPtr)
typedef CALLBACK_API(short, PCCardSSEntryProcPtr)(UInt16 fnCode
SS_RETCODE SSAcknowledgeInterrupt(SSAcknowledgeInterruptPB *pb, Ptr dataPtr)
SS_RETCODE SSGetEDC(SSGetSetEDCPB *pb, Ptr dataPtr)
void InvokePCCardCSEntryUPP(CSEventEntryPB *pb, PCCardCSEntryUPP userUPP)
SS_RETCODE SSGetAdapter(SSGetSetAdapterPB *pb, Ptr dataPtr)
SS_RETCODE SSGetSetPriorHandler(SSGetSetPriorHandlerPB *pb, Ptr dataPtr)
SS_RETCODE SSSetWindow(SSGetSetWindowPB *pb, Ptr dataPtr)
SS_RETCODE SSStopEDC(SSStopEDCPB *pb, Ptr dataPtr)
SS_RETCODE SSGetAdapterCount(SSGetAdapterCountPB *pb, Ptr dataPtr)
SS_RETCODE SSResumeEDC(SSResumeEDCPB *pb, Ptr dataPtr)
@ SS_CMPL_1_01
Definition: SocketServices.h:377
@ SS_CMPL_2_10
Definition: SocketServices.h:379
@ SS_CMPL_2_00
Definition: SocketServices.h:378
SS_RETCODE SSGetAccessOffsets(SSGetAccessOffsetsPB *pb, Ptr dataPtr)
SS_RETCODE SSResetSocket(SSResetSocketPB *pb, Ptr dataPtr)
@ AC_PWR
Definition: SocketServices.h:238
@ PWR_VPP1
Definition: SocketServices.h:292
SS_RETCODE SSInquireAdapter(SSInquireAdapterPB *pb, Ptr dataPtr)
Byte SS_BYTE
Definition: SocketServices.h:56
SS_RETCODE SSInquireSocket(SSInquireSocketPB *pb, Ptr dataPtr)
SS_RETCODE SSVendorSpecific(SSVendorSpecificPB *pb, Ptr dataPtr)
SS_RETCODE SSPauseEDC(SSPauseEDCPB *pb, Ptr dataPtr)
SS_RETCODE SSGetStatus(SSGetStatusPB *pb, Ptr dataPtr)
short InvokePCCardSSEntryUPP(UInt16 fnCode, Ptr callPB, Ptr dataPtr, PCCardSSEntryUPP userUPP)
SS_RETCODE SSGetSetSSAddr(SSGetSetSSAddrPB *pb, Ptr dataPtr)
void DisposePCCardSSEntryUPP(PCCardSSEntryUPP userUPP)
SS_RETCODE SSSetAdapter(SSGetSetAdapterPB *pb, Ptr dataPtr)
OSErr CSReplaceSocketServices(ReplaceSocketServicesPB *pb)
Definition: ATA.h:616
Definition: SocketServices.h:577
UInt32 dataPtr
Definition: SocketServices.h:581
PCCardCSEntryUPP csEntry
Definition: SocketServices.h:579
Definition: SocketServices.h:479
Definition: SocketServices.h:590
Definition: SocketServices.h:629
UInt16 sockets
Definition: SocketServices.h:631
Definition: SocketServices.h:635
Ptr buffer
Definition: SocketServices.h:640
UInt16 count
Definition: SocketServices.h:639
Byte mode
Definition: SocketServices.h:637
UInt16 numAvail
Definition: SocketServices.h:641
Byte reserved
Definition: SocketServices.h:638
Definition: SocketServices.h:645
UInt16 sig
Definition: SocketServices.h:647
Definition: SocketServices.h:721
UInt16 compliance
Definition: SocketServices.h:723
UInt16 numAdapters
Definition: SocketServices.h:724
UInt16 firstAdapter
Definition: SocketServices.h:725
Definition: SocketServices.h:651
Byte state
Definition: SocketServices.h:653
Byte irqStatus
Definition: SocketServices.h:654
Definition: SocketServices.h:658
UInt16 edc
Definition: SocketServices.h:660
Byte state
Definition: SocketServices.h:662
Byte edcType
Definition: SocketServices.h:663
UInt16 socket
Definition: SocketServices.h:661
Definition: SocketServices.h:667
UInt16 page
Definition: SocketServices.h:670
Byte state
Definition: SocketServices.h:671
Byte reserved
Definition: SocketServices.h:672
UInt16 window
Definition: SocketServices.h:669
UInt32 offset
Definition: SocketServices.h:673
Definition: SocketServices.h:677
Byte reserved
Definition: SocketServices.h:680
Byte mode
Definition: SocketServices.h:679
Ptr handler
Definition: SocketServices.h:681
Definition: SocketServices.h:700
Byte mode
Definition: SocketServices.h:702
UInt16 numAddData
Definition: SocketServices.h:704
Ptr buffer
Definition: SocketServices.h:705
Byte subfunc
Definition: SocketServices.h:703
Definition: SocketServices.h:685
Byte state
Definition: SocketServices.h:692
Byte scIntMask
Definition: SocketServices.h:691
Byte ctlInd
Definition: SocketServices.h:693
UInt16 socket
Definition: SocketServices.h:687
UInt16 vccIndex
Definition: SocketServices.h:688
Byte ireqRouting
Definition: SocketServices.h:694
UInt16 vpp1Index
Definition: SocketServices.h:689
UInt16 vpp2Index
Definition: SocketServices.h:690
Byte ifType
Definition: SocketServices.h:695
Byte padding[1]
Definition: SocketServices.h:696
Definition: SocketServices.h:709
UInt32 size
Definition: SocketServices.h:713
UInt16 speed
Definition: SocketServices.h:716
Byte reserved
Definition: SocketServices.h:715
UInt16 socket
Definition: SocketServices.h:712
Byte state
Definition: SocketServices.h:714
UInt16 window
Definition: SocketServices.h:711
UInt32 base
Definition: SocketServices.h:717
Definition: SocketServices.h:729
Byte ifType
Definition: SocketServices.h:736
Byte cardState
Definition: SocketServices.h:732
Byte padding[1]
Definition: SocketServices.h:737
Byte socketState
Definition: SocketServices.h:733
Byte ctlInd
Definition: SocketServices.h:734
Byte ireqRouting
Definition: SocketServices.h:735
UInt16 socket
Definition: SocketServices.h:731
Definition: SocketServices.h:741
Byte reserved
Definition: SocketServices.h:744
UInt16 release
Definition: SocketServices.h:746
Ptr buffer
Definition: SocketServices.h:745
Byte vendorInfoType
Definition: SocketServices.h:743
Definition: SocketServices.h:750
UInt16 numEDCs
Definition: SocketServices.h:755
UInt16 numSockets
Definition: SocketServices.h:753
UInt16 numWindows
Definition: SocketServices.h:754
Ptr buffer
Definition: SocketServices.h:752
Definition: SocketServices.h:759
Byte types
Definition: SocketServices.h:764
Byte caps
Definition: SocketServices.h:763
UInt16 edc
Definition: SocketServices.h:761
UInt16 sockets
Definition: SocketServices.h:762
Definition: SocketServices.h:768
UInt16 socket
Definition: SocketServices.h:770
Ptr buffer
Definition: SocketServices.h:771
Byte ctlIndCaps
Definition: SocketServices.h:774
Byte scRptCaps
Definition: SocketServices.h:773
Byte padding[1]
Definition: SocketServices.h:775
Byte scIntCaps
Definition: SocketServices.h:772
Definition: SocketServices.h:779
Ptr buffer
Definition: SocketServices.h:782
Byte reserved
Definition: SocketServices.h:784
UInt16 window
Definition: SocketServices.h:781
UInt16 sockets
Definition: SocketServices.h:785
Byte wndCaps
Definition: SocketServices.h:783
Definition: SocketServices.h:789
UInt16 edc
Definition: SocketServices.h:791
Definition: SocketServices.h:795
UInt16 value
Definition: SocketServices.h:798
UInt16 edc
Definition: SocketServices.h:797
Definition: SocketServices.h:802
UInt16 socket
Definition: SocketServices.h:804
Definition: SocketServices.h:808
UInt16 edc
Definition: SocketServices.h:810
Definition: SocketServices.h:814
UInt16 edc
Definition: SocketServices.h:816
Definition: SocketServices.h:820
UInt16 edc
Definition: SocketServices.h:822
Definition: SocketServices.h:826
Ptr buffer
Definition: SocketServices.h:831
UInt16 adapter
Definition: SocketServices.h:828
UInt32 attributes
Definition: SocketServices.h:832
UInt16 socket
Definition: SocketServices.h:829
UInt16 bufferSize
Definition: SocketServices.h:830
Definition: SocketServices.h:108
UInt32 activeLow
Definition: SocketServices.h:111
UInt32 activeHigh
Definition: SocketServices.h:110
Definition: SocketServices.h:121
SS_PWRENTRY * pwrEntryPtr
Definition: SocketServices.h:126
SS_ACHARTBL charTable
Definition: SocketServices.h:124
UInt16 dataLength
Definition: SocketServices.h:123
Definition: SocketServices.h:144
UInt32 maxSize
Definition: SocketServices.h:149
Byte eisaSlot
Definition: SocketServices.h:152
UInt16 addrLines
Definition: SocketServices.h:151
UInt32 minSize
Definition: SocketServices.h:148
Byte padding[1]
Definition: SocketServices.h:153
UInt32 lastByte
Definition: SocketServices.h:147
UInt32 firstByte
Definition: SocketServices.h:146
UInt32 reqGran
Definition: SocketServices.h:150
Definition: SocketServices.h:130
UInt32 reqBase
Definition: SocketServices.h:137
UInt32 lastByte
Definition: SocketServices.h:133
UInt16 fastest
Definition: SocketServices.h:140
UInt32 minSize
Definition: SocketServices.h:134
UInt32 reqOffset
Definition: SocketServices.h:138
UInt16 slowest
Definition: SocketServices.h:139
UInt32 reqGran
Definition: SocketServices.h:136
UInt32 maxSize
Definition: SocketServices.h:135
UInt32 firstByte
Definition: SocketServices.h:132
Definition: SocketServices.h:115
Byte validSignals
Definition: SocketServices.h:117
Definition: SocketServices.h:80
UInt32 activeHigh
Definition: SocketServices.h:82
UInt32 activeLow
Definition: SocketServices.h:83
Definition: SocketServices.h:87
UInt16 dataLength
Definition: SocketServices.h:89
SS_SCHARTBL charTable
Definition: SocketServices.h:90
Definition: SocketServices.h:100
char szImplementor[1]
Definition: SocketServices.h:103
Byte padding[1]
Definition: SocketServices.h:104
UInt16 dataLength
Definition: SocketServices.h:102
Definition: SocketServices.h:157
UInt16 dataLength
Definition: SocketServices.h:159
UInt16 numTblEntries
Definition: SocketServices.h:160
SS_MEMWINTBL memWinTbl
Definition: SocketServices.h:161