Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / dev / usb2 / hcd / hcd-call.fth
CommitLineData
920dae64
AT
1\ ========== Copyright Header Begin ==========================================
2\
3\ Hypervisor Software File: hcd-call.fth
4\
5\ Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
6\
7\ - Do no alter or remove copyright notices
8\
9\ - Redistribution and use of this software in source and binary forms, with
10\ or without modification, are permitted provided that the following
11\ conditions are met:
12\
13\ - Redistribution of source code must retain the above copyright notice,
14\ this list of conditions and the following disclaimer.
15\
16\ - Redistribution in binary form must reproduce the above copyright notice,
17\ this list of conditions and the following disclaimer in the
18\ documentation and/or other materials provided with the distribution.
19\
20\ Neither the name of Sun Microsystems, Inc. or the names of contributors
21\ may be used to endorse or promote products derived from this software
22\ without specific prior written permission.
23\
24\ This software is provided "AS IS," without a warranty of any kind.
25\ ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
26\ INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
27\ PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
28\ MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
29\ ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
30\ DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
31\ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
32\ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
33\ DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
34\ ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
35\ SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
36\
37\ You acknowledge that this software is not designed, licensed or
38\ intended for use in the design, construction, operation or maintenance of
39\ any nuclear facility.
40\
41\ ========== Copyright Header End ============================================
42id: @(#)hcd-call.fth 1.1 07/01/04
43purpose: Functional interface to HCD driver provided for all usb children
44copyright: Copyright 2007 Sun Microsystems, Inc. All Rights Reserved
45\ See license at end of file
46
47\ All hub drivers must forward all the following methods for their children.
48\ A device driver may include only a subset of the methods it needs.
49
50hex
51external
52
53: dma-alloc ( size -- virt ) " dma-alloc" $call-parent ;
54: dma-free ( virt size -- ) " dma-free" $call-parent ;
55: dma-sync ( virt phys size -- ) " dma-sync" $call-parent ;
56: dma-map-in ( virt size cache? -- phys ) " dma-map-in" $call-parent ;
57: dma-map-out ( virt phys size -- ) " dma-map-out" $call-parent ;
58
59: set-target ( device -- ) " set-target" $call-parent ;
60: probe-hub-xt ( -- adr ) " probe-hub-xt" $call-parent ;
61: set-pipe-maxpayload ( size len -- ) " set-pipe-maxpayload" $call-parent ;
62
63\ Control pipe operations
64: control-get ( adr len idx value rtype req -- actual usberr )
65 " control-get" $call-parent
66;
67: control-set ( adr len idx value rtype req -- usberr )
68 " control-set" $call-parent
69;
70: control-set-nostat ( adr len idx value rtype req -- usberr )
71 " control-set-nostat" $call-parent
72;
73: get-desc ( adr len lang didx dtype rtype -- actual usberr )
74 " get-desc" $call-parent
75;
76: get-status ( adr len intf/endp rtype -- actual usberr )
77 " get-status" $call-parent
78;
79: set-config ( cfg -- usberr )
80 " set-config" $call-parent
81;
82: set-interface ( alt intf -- usberr )
83 " set-interface" $call-parent
84;
85: clear-feature ( intf/endp feature rtype -- usberr )
86 " clear-feature" $call-parent
87;
88: set-feature ( intf/endp feature rtype -- usberr )
89 " set-feature" $call-parent
90;
91: unstall-pipe ( pipe -- ) " unstall-pipe" $call-parent ;
92
93\ Bulk pipe operations
94: bulk-in ( buf len pipe -- actual usberr )
95 " bulk-in" $call-parent
96;
97: bulk-out ( buf len pipe -- usberr )
98 " bulk-out" $call-parent
99;
100: begin-bulk-in ( buf len pipe -- )
101 " begin-bulk-in" $call-parent
102;
103: bulk-in? ( -- actual usberr )
104 " bulk-in?" $call-parent
105;
106: restart-bulk-in ( -- )
107 " restart-bulk-in" $call-parent
108;
109: end-bulk-in ( -- )
110 " end-bulk-in" $call-parent
111;
112: set-bulk-in-timeout ( t -- )
113 " set-bulk-in-timeout" $call-parent
114;
115
116\ Interrupt pipe operations
117: begin-intr-in ( buf len pipe interval -- )
118 " begin-intr-in" $call-parent
119;
120: intr-in? ( -- actual usberr )
121 " intr-in?" $call-parent
122;
123: restart-intr-in ( -- )
124 " restart-intr-in" $call-parent
125;
126: end-intr-in ( -- )
127 " end-intr-in" $call-parent
128;
129
130headers
131
132\ LICENSE_BEGIN
133\ Copyright (c) 2006 FirmWorks
134\
135\ Permission is hereby granted, free of charge, to any person obtaining
136\ a copy of this software and associated documentation files (the
137\ "Software"), to deal in the Software without restriction, including
138\ without limitation the rights to use, copy, modify, merge, publish,
139\ distribute, sublicense, and/or sell copies of the Software, and to
140\ permit persons to whom the Software is furnished to do so, subject to
141\ the following conditions:
142\
143\ The above copyright notice and this permission notice shall be
144\ included in all copies or substantial portions of the Software.
145\
146\ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
147\ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
148\ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
149\ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
150\ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
151\ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
152\ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
153\
154\ LICENSE_END