|
|
1.1 root 1: # this sed script munges one file in order to bring the file into
2: # conformance with the driverkit API changes made in 1/92.
3: # Must be used in conjunction with disk_changes.sed.
4: #
5: # user_driver.h
6: s/user_driver.h/driverServer.h/g
7: s/IOGetDeviceTypeFromPort/_IOLookupByDevicePort/g
8: s/IOGetDeviceType/_IOLookupByDeviceNumber/g
9: s/IOPhysDevicePage/_IOGetPhysicalAddressOfDevicePage/g
10: s/IOMapSlot/_IOMapSlotSpace/g
11: s/IOUnmapSlot/_IOUnmapSlotSpace/g
12: s/IOMapBoard/_IOMapBoardSpace/g
13: s/IOUnmapBoard/_IOUnmapBoardSpace/g
14: s/IO_CC_INTR_ENABLE/IO_CC_ENABLE_INTERRUPTS/g
15: s/IO_CC_INTR_DISABLE/IO_CC_DISABLE_INTERRUPTS/g
16: s/IO_CC_LOOP_FRAME/IO_CC_CONNECT_FRAME_LOOP/g
17: s/IO_CC_UNLOOP_FRAME/IO_CC_DISCONNECT_FRAME_LOOP/g
18: s/IO_CC_DEV_INTR_ENABLE/IO_CC_DISABLE_DEVICE_INTERRUPTS/g
19: s/IO_CC_DEV_INTR_DISABLE/IO_CC_DISABLE_DEVICE_INTERRUPTS/g
20: s/IOEnqueueDma/_IOEnqueueDMA/g
21: s/IO_CEO_EOR/IO_CEO_END_OF_RECORD/g
22: s/IO_CEO_DESC_INTR/IO_CEO_DESCRIPTOR_INTERRUPT/g
23: s/IO_CEO_ENABLE_INTR/IO_CEO_ENABLE_INTERRUPTS/g
24: s/IO_CEO_ENABLE_CHAN/IO_CEO_ENABLE_CHANNEL/g
25: s/IO_CEO_DESC_CMD/IO_CEO_DESCRIPTOR_COMMAND/g
26: s/IODequeueDma/_IODequeueDMA/g
27: s/IO_CDO_ENABLE_INTR/IO_CDO_ENABLE_INTERRUPTS/g
28: s/IO_CDO_EI_IF_MT/IO_CDO_ENABLE_INTERRUPTS_IF_EMPTY/g
29: s/DMA_ID_NULL/IO_NULL_DMA_ID/g
30: s/IOInquire/_IOLookupByObjectNumber/g
31: s/IOLookup(/_IOLookupByDeviceName(/g
32: s/IOGetParameterInt/_IOGetIntValues/g
33: s/IOGetParameterChar/_IOGetCharValues/g
34: s/IOSetParameterInt/_IOSetIntValues/g
35: s/IOSetParameterChar/_IOSetCharValues/g
36: s/IO_CHAN_NONE/IO_NO_CHANNEL/g
37: s/IOCreateDevicePort/_IOCreateDevicePort/g
38: s/IODestroyDevicePort/_IODestroyDevicePort/g
39: s/IOAttachInterrupt/_IOAttachInterrupt/g
40: s/IODetachInterrupt/_IODetachInterrupt/g
41: s/IOAttachChannel/_IOAttachChannel/g
42: s/IODetachChannel/_IODetachChannel/g
43: s/IOMapDevicePage/_IOMapDevicePage/g
44: s/IOUnmapDevicePage/_IOUnmapDevicePage/g
45: s/IOSendChannelCommand/_IOSendChannelCommand/g
46: #
47: # user_driver_types.h
48: #
49: s/user_driver_types.h/driverTypes.h/g
50: s/IODeviceReturn/IOReturn/g
51: s/IO_DR_SUCCESS/IO_R_SUCCESS/g
52: s/IO_DR_ACCESS/IO_R_PRIVILEGE/g
53: s/IO_DR_NOTATTACHED/IO_R_NOT_ATTACHED/g
54: s/IO_DR_INVALID/IO_R_INVALIDARG/g
55: s/IO_DR_MEMORY/IO_R_PRIVILEGE/g
56: s/IO_DR_NOCHANNEL/IO_R_NO_CHANNELS/g
57: s/IO_DR_NOSPACE/IO_R_NO_SPACE/g
58: s/IO_DR_NODEVICES/IO_R_NO_DEVICES/g
59: s/IO_DR_NOPORT/IO_R_RESOURCE/g
60: s/IO_DR_MAXCHANNELS/IO_R_INVALIDARG/g
61: s/IO_DR_EXISTS/IO_R_PORT_EXISTS/g
62: s/IO_DR_NOINTR/IO_R_RESOURCE/g
63: s/IO_DR_BUSY/IO_R_BUSY/g
64: s/IO_DR_UNSUPPORTED/IO_R_UNSUPPORTED/g
65: s/IO_DR_ALIGNMENT/IO_R_ALIGN/g
66: s/IO_DR_CANTWIRE/IO_R_CANT_WIRE/g
67: s/IO_DR_NOINTERRUPT/IO_R_NO_INTERRUPT/g
68: s/IO_DR_RESOURCE/IO_R_RESOURCE/g
69: s/IO_DR_NOFRAMES/IO_R_NO_FRAMES/g
70: s/IO_DR_INTERNAL/IO_R_INTERNAL/g
71: s/IOUnitNumber/IOObjectNumber/g
72: s/IO_DS_NONE/IO_None/g
73: s/IO_DS_COMPLETE/IO_Complete/g
74: s/IO_DS_RUNNING/IO_Running/g
75: s/IO_DS_UNDERRUN/IO_Underrun/g
76: s/IO_DS_BUSERR/IO_BusError/g
77: s/IO_DS_BUFERR/IO_BufferError/g
78: s/IO_DMA_DIR_READ/IO_DMARead/g
79: s/IO_DMA_DIR_WRITE/IO_DMAWrite/g
80: s/DEV_CACHE_OFF/IO_CacheOff/g
81: s/DEV_CACHE_WRITE_THRU/IO_WriteThrough/g
82: s/DEV_CACHE_COPY_BACK/IO_CopyBack/g
83: s/DEV_TASK_NULL/IO_NULL_VM_TASK/g
84: s/NATIVE_SLOT_ID/IO_NATIVE_SLOT_ID/g
85: s/DEV_TYPE_SLOT/IO_SLOT_DEVICE_TYPE/g
86: s/SLOT_ID_NULL/IO_NULL_SLOT_ID/g
87: s/DEV_TYPE_NULL/IO_NULL_DEVICE_TYPE/g
88: s/DEV_INDEX_NULL/IO_NULL_DEVICE_INDEX/g
89: s/BOARD_SIZE_MAX/IO_MAX_BOARD_SIZE/g
90: s/SLOT_SIZE_NRW_MAX/IO_MAX_NRW_SLOT_SIZE/g
91: s/SLOT_SIZE_MAX/IO_MAX_SLOT_SIZE/g
92: s/IO_PARAMETER_NAME_SIZE/IO_MAX_PARAMETER_NAME_LENGTH/g
93: s/IO_MAX_PARAMETER_ARRAY/IO_MAX_PARAMETER_ARRAY_LENGTH/g
94: s/dmaStatValues/IODMAStatusStrings/g
95: s/rvValue/value/g
96: s/rvName/name/g
97: s/regValues/IONamedValue/g
98: s/IOUnitType/IOString/g
99: s/IOUnitName/IOString/g
100: s/IOCacheSpec/IOCache/g
101: s/UNITTYPE_LENGTH/IO_STRING_LENGTH/g
102: s/UNITNAME_LENGTH/IO_STRING_LENGTH/g
103: s/IODmaDirection/IODMADirection/g
104: s/IODmaStatus/IODMAStatus/g
105: s/IODevicePort/port_t/g
106: #
107: # i386/user_driver_types.h
108: #
109: s/EISA_io_mapping_t/IOEISAPortRange/g
110: s/EISA_CONF_NIOMAP/IO_NUM_EISA_PORT_RANGES/g
111: s/EISA_io_conf_t/IOEISAPortMap/g
112: s/EISA_phys_mapping_t/IOEISAMemoryRange/g
113: s/EISA_CONF_NPHYSMAP/IO_NUM_EISA_MEMORY_RANGES/g
114: s/EISA_phys_conf_t/IOEISAMemoryMap/g
115: s/EISA_intr_req_t/IOEISAInterrupt/g
116: s/EISA_CONF_NIRQ/IO_NUM_EISA_INTERRUPTS/g
117: s/EISA_intr_conf_t/IOEISAInterruptList/g
118: s/EISA_dma_req_t/IOEISADMAChannel/g
119: s/EISA_CONF_NDMA/IO_NUM_EISA_DMA_CHANNELS/g
120: s/EISA_dma_conf_t/IOEISADMAChannelList/g
121: #
122: # deviceCommon.h
123: #
124: s/deviceCommon.h/return.h/g
125: s/IO_R_BADMSGID/IO_R_BAD_MSG_ID/g
126: s/IO_R_EXCL_ACCESS/IO_R_EXCLUSIVE_ACCESS/g
127: s/IO_R_INVALIDARG/IO_R_INVALID_ARG/g
128: s/IO_R_IPCFAIL/IO_R_IPC_FAILURE/g
129: s/IO_R_NODEVICE/IO_R_NO_DEVICE/g
130: s/IO_R_NOMEM/IO_R_NO_MEMORY/g
131: s/IO_R_NOTOPEN/IO_R_NOT_OPEN/g
132: s/IO_R_NOTREADABLE/IO_R_NOT_READABLE/g
133: s/IO_R_NOTREADY/IO_R_NOT_READY/g
134: s/IO_R_NOTWRITEABLE/IO_R_NOT_WRITABLE/g
135: s/IO_R_VMEMFAIL/IO_R_VM_FAILURE/g
136: s/IO_R_NOTATTACHED/IO_R_NOT_ATTACHED/g
137: #
138: # uxpr.h
139: #
140: s/uxpr.h/debugging.h/g
141: s/XPR_DEBUG/DDM_DEBUG/g
142: s/NUM_XPR_MASKS/IO_NUM_DDM_MASKS/g
143: s/xprMask/IODDMMasks/g
144: s/xprInit(/IOInitDDM(/g
145: s/xprAdd(/IOAddDDMEntry(/g
146: s/xprClear(/IOClearDDM(/g
147: s/xprGetBitmask(/IOGetDDMMask(/g
148: s/xprSetBitmask(/IOSetDDMMask(/g
149: s/xprGetEntry(/IOGetDDMEntry(/g
150: s/xpr_string(/IOCopyString(/g
151: s/uxpr(/IODEBUG(/g
152: #
153: # uxprServer.h
154: #
155: s/uxprServer.h/debuggingMsg.h/g
156: s/SIZEOF_EXPORTED_STRING/IO_DDM_STRING_LENGTH/g
157: s/arg_type/argType/g
158: s/mask_value/maskValue/g
159: s/timestamp_hi/timestampHighInt/g
160: s/timestamp_low/timestampLowInt/g
161: s/cpu_num/cpuNumber/g
162: s/string_type/stringType/g
163: s/uxprMessage_t/IODDMMsg/g
164: s/UXPR_MSG_BASE/IO_DDM_MSG_BASE/g
165: s/UXPR_MSG_LOCK/IO_LOCK_DDM_MSG/g
166: s/UXPR_MSG_UNLOCK/IO_UNLOCK_DDM_MSG/g
167: s/UXPR_MSG_GETSTRING/IO_GET_DDM_ENTRY_MSG/g
168: s/UXPR_MSG_SETMASK/IO_SET_DDM_MASK_MSG/g
169: s/UXPR_MSG_CLEAR/IO_CLEAR_DDM_MSG/g
170: s/XPR_STATUS_GOOD/IO_DDM_SUCCESS/g
171: s/XPR_STATUS_NOBUF/IO_NO_DDM_BUFFER/g
172: s/XPR_STATUS_BADINDEX/IO_BAD_DDM_INDEX/g
173: s/uxpr_ns_time/IONsTimeFromDDMMsg/g
174: #
175: # libIO.h
176: #
177: s/IOlibIOInit(/IOInitGeneralFuncs(/g
178: s/libIO.h/generalFuncs.h/g
179: s/IOThreadFcn/IOThreadFunc/g
180: s/IOTimeout/IOScheduleFunc/g
181: s/IOUntimeout/IOUnscheduleFunc/g
182: s/IOTimeStamp/IOGetTimestamp/g
183: s/IOIntToString/IOFindNameForValue/g
184: s/IOStringToInt/IOFindValueForName/g
185: s/IOlibIOInit/IOInitGeneralFunc/g
186: s/IOTaskSelf/task_self/g
187: #
188: # interrupt_msg.h
189: #
190: s/interrupt_msg.h/interruptMsg.h/g
191: s/interruptMsg_t/IOInterruptMsg/g
192: s/INT_MSG_ID_BASE/IO_INTERRUPT_MSG_ID_BASE/g
193: s/INT_MSG_TIMEOUT/IO_TIMEOUT_MSG/g
194: s/INT_MSG_COMMAND/ IO_COMMAND_MSG/g
195: s/INT_MSG_DEVICE/IO_DEVICE_INTERRUPT_MSG/g
196: s/INT_MSG_DMA/IO_DMA_INTERRUPT_MSG/g
197: #
198: # IOAlign.h
199: #
200: s/IOAlign.h/align.h/
201: s/DMA_DO_ALIGN/IOAlign/g
202: s/DMA_ISALIGNED/IOIsAligned/g
203: #
204: # IODevice.h
205: #
206: s/IO_Class_Name/IOClassName/g
207: s/IO_Device_Name/IODeviceName/g
208: s/IO_Device_Type/IODeviceType/g
209: s/IOReturnToString/stringFromReturn/g
210: s/IOReturnToErrno/errnoFromReturn/g
211: s/setDeviceType/setDeviceKind/g
212: s/setDeviceName/setName/g
213: s/ deviceName\]/ name]/g
214: s/ deviceType\]/ deviceKind]/g
215: #
216: # kern_driver.h
217: #
218: s/kern_driver.h/kernelDriver.h/g
219: s/IOKernDeviceLookup/IOGetObjectForDeviceName/g
220: s/IO_CC_DISABLE_UXPR/IO_CC_DISABLE_DDM/g
221: s/IO_CC_ENABLE_UXPR/IO_CC_ENABLE_DDM/g
222: s/IOEnqueueDmaInt/_IOEnqueueDMAInt/g
223: #
224: # DeviceUxpr.h
225: #
226: s/DeviceUxpr.h/Device_ddm.h/g
227: #
228: # uxprPrivate.h
229: #
230: s/uxprPrivate.h/ddmPrivate.h/g
231: #
232: # i386/user_driver.h
233: s/IOMapEISADevicePorts/_IOMapEISADevicePorts/g
234: s/IOUnMapEISADevicePorts/_IOUnMapEISADevicePorts/g
235: s/IOMapEISADeviceMemory/_IOMapEISADeviceMemory/g
236: s/IOEnableEISAInterrupt/_IOEnableEISAInterrupt/g
237: s/IODisableEISAInterrupt/_IODisableEISAInterrupt/g
238: s/IOGetEISADeviceConfig/_IOGetEISADeviceConfig/g
239: #
240: # configPublic.h
241: s/configPublic.h/userConfigServer.h/g
242: #
243: # architecture/i386/io.h
244: s/io_addr_t/IOEISAPortAddress/g
245: s/io_len_t/IONumEISAPorts/g
246:
247:
248:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.