19 #ifndef __SOCKETSERVICES__
20 #define __SOCKETSERVICES__
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
57 typedef Byte SS_FLAGS8;
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;
78 typedef OSErr SS_RETCODE;
125 UInt16 numPwrEntries;
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,
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,
197 fnSSResumeEDC = 0x9A,
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
225 fnVSGetSocketLocationIcon = 0x01,
226 fnVSGetSocketLocationText = 0x02,
227 fnVSDoSocketLocalization = 0x03,
228 fnVSAppleSocketCapabilities = 0x04,
229 fnVSSleepWakeNotification = 0x05
366 WS_SWAP_LITTLE_TO_BIG_ENDIAN = 64
371 SS_SIG_VALUE = 0x5353
376 SS_CMPL_1_00 = 0x0100,
385 typedef CALLBACK_API(
short, PCCardSSEntryProcPtr)(UInt16 fnCode, Ptr callPB,
388 #if CALL_NOT_IN_CARBON
399 #if !OPAQUE_UPP_TYPES
402 uppPCCardSSEntryProcInfo = 0x00000FA0
408 uppPCCardSSEntryProcInfo,
409 GetCurrentArchitecture());
412 #define NewPCCardSSEntryUPP(userRoutine) \
414 NewRoutineDescriptor((ProcPtr)(userRoutine), uppPCCardSSEntryProcInfo, \
415 GetCurrentArchitecture())
429 #if !OPAQUE_UPP_TYPES
436 #define DisposePCCardSSEntryUPP(userUPP) DisposeRoutineDescriptor(userUPP)
450 PCCardSSEntryUPP userUPP);
451 #if !OPAQUE_UPP_TYPES
454 PCCardSSEntryUPP userUPP)
456 return (
short)CALL_THREE_PARAMETER_UPP(userUPP, uppPCCardSSEntryProcInfo,
457 fnCode, callPB, dataPtr);
460 #define InvokePCCardSSEntryUPP(fnCode, callPB, dataPtr, userUPP) \
461 (short)CALL_THREE_PARAMETER_UPP((userUPP), uppPCCardSSEntryProcInfo, \
462 (fnCode), (callPB), (dataPtr))
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)
490 #if CALL_NOT_IN_CARBON
501 #if !OPAQUE_UPP_TYPES
504 uppPCCardCSEntryProcInfo = 0x000000C0
510 uppPCCardCSEntryProcInfo,
511 GetCurrentArchitecture());
514 #define NewPCCardCSEntryUPP(userRoutine) \
516 NewRoutineDescriptor((ProcPtr)(userRoutine), uppPCCardCSEntryProcInfo, \
517 GetCurrentArchitecture())
531 #if !OPAQUE_UPP_TYPES
538 #define DisposePCCardCSEntryUPP(userUPP) DisposeRoutineDescriptor(userUPP)
552 #if !OPAQUE_UPP_TYPES
555 PCCardCSEntryUPP userUPP)
557 CALL_ONE_PARAMETER_UPP(userUPP, uppPCCardCSEntryProcInfo,
pb);
560 #define InvokePCCardCSEntryUPP(pb, userUPP) \
561 CALL_ONE_PARAMETER_UPP((userUPP), uppPCCardCSEntryProcInfo, (pb))
567 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
569 #define NewPCCardCSEntryProc(userRoutine) NewPCCardCSEntryUPP(userRoutine)
570 #define CallPCCardCSEntryProc(userRoutine, pb) \
571 InvokePCCardCSEntryUPP(pb, userRoutine)
578 PCCardSSEntryUPP ssEntry;
591 PCCardSSEntryUPP ssEntry;
592 PCCardSSEntryUPP oldSSEntry;
600 #if CALL_NOT_IN_CARBON
646 UInt16 totalAdapters;
838 kSSGoingToSleep = 0x00000001,
839 kSSWakingFromSleep = 0x00000002
845 #if CALL_NOT_IN_CARBON
1179 #if PRAGMA_STRUCT_ALIGN
1180 #pragma options align = reset
1181 #elif PRAGMA_STRUCT_PACKPUSH
1183 #elif PRAGMA_STRUCT_PACK
1187 #ifdef PRAGMA_IMPORT_OFF
1190 #pragma import reset
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: 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