usbmodhead 4.06 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
; Copyright 2003 Tematic Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
#include "Global/Services.h"
16 17
#include "../Version"

18 19 20 21 22 23 24 25 26 27 28
initialisation-code:	module_init

finalisation-code:  	module_final

service-call-handler:	module_services	Service_ResourceFSStarted,
					Service_ResourceFSStarting,
					Service_PCI,
					Service_USB

title-string:	    	USBDriver

29
help-string:	     	USBDriver  USBDriverModule_MajorVersion_CMHG
30

31
date-string:	    	USBDriverModule_Module_Date_CMHG
32 33 34

#define HELPFILE(M) "Resources:$." #M
#define XHELPFILE(M) HELPFILE(M)
35
international-help-file: XHELPFILE(MSGLOC)
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61

command-keyword-table:	module_commands

#ifdef USB_DEBUG
USBDebug(       min-args:1, max-args:3,
                international:,help-text:"HUSBDBG",invalid-syntax:"SUSBDBG"),
#endif

USBBuses(       min-args:0, max-args:0,
                international:,help-text:"HUSBBUS",invalid-syntax:"SUSBBUS"),

USBDevices(     min-args:0, max-args:0,
                international:,help-text:"HUSBDEV",invalid-syntax:"SUSBDEV"),

USBDevInfo(     min-args:1, max-args:1,
                international:,help-text:"HUSBDIN",invalid-syntax:"SUSBDIN"),

USBConfInfo(    min-args:1, max-args:1,
                international:,help-text:"HUSBCIN",invalid-syntax:"SUSBCIN"),

USBSetConfig(   min-args:2, max-args:2,
                international:,help-text:"HUSBCON",invalid-syntax:"SUSBCON"),

USBSetInterface(min-args:3, max-args:3,
                international:,help-text:"HUSBINT",invalid-syntax:"SUSBINT"),

62
#ifdef USB_DEBUG
63 64
USBDiscover(    min-args:0, max-args:0,
                international:,help-text:"HUSBDIS",invalid-syntax:"SUSBDIS"),
65
#endif
66 67 68 69 70 71 72 73 74 75 76 77 78

USBReset(       min-args:1, max-args:1,
                international:,help-text:"HUSBRES",invalid-syntax:"SUSBRES")


swi-chunk-base-number:	0x54a40

swi-handler-code:   	module_swis

swi-decoding-table: 	USBDriver,
                        RegisterBus,
                        DeRegisterBus,
                        InsertTransfer,
79 80
                        TransferComplete,
                        ScheduleSoftInterrupt
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
;                        IOCtl,
;                        OpenPipe,
;                        ClosePipe,
;                        Transfer,
;                        AllocXfer,
;                        FreeXfer,
;                        SetupXfer,
;                        SetupDefaultXfer,
;                        SetupIsocXfer,
;                        GetXferStatus,
;                        Interface2EndpointDescriptor,
;                        AbortPipe,
;                        ClearEndpointStall,
;                        ClearEndpointStallAsync,
;                        EndpointCount,
;                        Interface2DeviceHandle,
;                        Device2InterfaceHandle,
;                        Pipe2DeviceHandle,
;                        AllocBuffer,
;                        Freebuffer,
;                        GetBuffer,
;                        SyncTransfer,
;                        OpenPipeIntr,
;                        DoRequest,
;                        DoRequestAsync,
;                        DoRequestFlags,
;                        GetInterfaceDescriptor,
;                        GetConfigDescriptor,
;                        SetInterface,
;                        FillDeviceInfo,
;                        GetInterfaceAltindex,
;                        FindIdesc,
;                        FindEdesc,
;                        DevInfo,
;                        GetEndpointDescriptor,
;                        ReloadDeviceDesc


generic-veneers:        driver_entry/driver

vector-handlers:        pointerv_entry/pointerv,
122 123
			keyv_entry/keyv,
			softintr_entry/softintr