OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [io/] [usb/] [slave/] [v2_0/] [host/] [list.tcl] - Blame information for rev 308

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
# {{{  Banner                           
2
 
3
#===============================================================================
4
#
5
#    list.tcl
6
#
7
#    Support for USB testing
8
#
9
#===============================================================================
10
#####ECOSGPLCOPYRIGHTBEGIN####
11
## -------------------------------------------
12
## This file is part of eCos, the Embedded Configurable Operating System.
13
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
14
##
15
## eCos is free software; you can redistribute it and/or modify it under
16
## the terms of the GNU General Public License as published by the Free
17
## Software Foundation; either version 2 or (at your option) any later version.
18
##
19
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
22
## for more details.
23
##
24
## You should have received a copy of the GNU General Public License along
25
## with eCos; if not, write to the Free Software Foundation, Inc.,
26
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27
##
28
## As a special exception, if other files instantiate templates or use macros
29
## or inline functions from this file, or you compile this file and link it
30
## with other works to produce a work based on this file, this file does not
31
## by itself cause the resulting work to be covered by the GNU General Public
32
## License. However the source code for this file must still be made available
33
## in accordance with section (3) of the GNU General Public License.
34
##
35
## This exception does not invalidate any other reasons why a work based on
36
## this file might be covered by the GNU General Public License.
37
##
38
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
39
## at http://sources.redhat.com/ecos/ecos-license/
40
## -------------------------------------------
41
#####ECOSGPLCOPYRIGHTEND####
42
#===============================================================================
43
######DESCRIPTIONBEGIN####
44
#
45
# Author(s):    bartv
46
# Date:         2001-08-21
47
# Purpose:      Provide details of the available endpoints
48
#
49
#####DESCRIPTIONEND####
50
#===============================================================================
51
#
52
 
53
# }}}
54
 
55
puts "Control endpoint: valid packet sizes are $usbtest::control(min_size) to $usbtest::control(max_size)"
56
 
57
if { 0 != [llength $usbtest::bulk_in_endpoints] } {
58
    puts "Bulk IN endpoints: $usbtest::bulk_in_endpoints"
59
    foreach ep $usbtest::bulk_in_endpoints {
60
        puts [format "  %2d: packet sizes %d to %d, padding %d" $ep \
61
                $usbtest::bulk_in($ep,min_size) $usbtest::bulk_in($ep,max_size) $usbtest::bulk_in($ep,max_in_padding)]
62
        if { "" == $usbtest::bulk_in($ep,devtab) } {
63
            puts "      no devtab entry"
64
        } else {
65
            puts "      devtab entry $usbtest::bulk_in($ep,devtab)"
66
        }
67
    }
68
}
69
if { 0 != [llength $usbtest::bulk_out_endpoints] } {
70
    puts "Bulk OUT endpoints: $usbtest::bulk_out_endpoints"
71
    foreach ep $usbtest::bulk_out_endpoints {
72
        puts [format "  %2d: packet sizes %d to %d" $ep \
73
                $usbtest::bulk_out($ep,min_size) $usbtest::bulk_out($ep,max_size)]
74
        if { "" == $usbtest::bulk_out($ep,devtab) } {
75
            puts "      no devtab entry"
76
        } else {
77
            puts "      devtab entry $usbtest::bulk_out($ep,devtab)"
78
        }
79
    }
80
}
81
 
82
if { 0 != [llength $usbtest::isochronous_in_endpoints] } {
83
    puts "Isochronous IN endpoints: $usbtest::isochronous_in_endpoints"
84
    foreach ep $usbtest::isochronous_in_endpoints {
85
        puts [format "  %2d: packet sizes %d to %d" $ep \
86
                $usbtest::isochronous_in($ep,min_size) $usbtest::isochronous_in($ep,max_size)]
87
        if { "" == $usbtest::isochronous_in($ep,devtab) } {
88
            puts "      no devtab entry"
89
        } else {
90
            puts "      devtab entry $usbtest::isochronous_in($ep,devtab)"
91
        }
92
    }
93
}
94
if { 0 != [llength $usbtest::isochronous_out_endpoints] } {
95
    puts "Isochronous OUT endpoints: $usbtest::isochronous_out_endpoints"
96
    foreach ep $usbtest::isochronous_out_endpoints {
97
        puts [format "  %2d: packet sizes %d to %d" $ep \
98
                $usbtest::isochronous_out($ep,min_size) $usbtest::isochronous_out($ep,max_size)]
99
        if { "" == $usbtest::isochronous_out($ep,devtab) } {
100
            puts "      no devtab entry"
101
        } else {
102
            puts "      devtab entry $usbtest::isochronous_out($ep,devtab)"
103
        }
104
    }
105
}
106
 
107
if { 0 != [llength $usbtest::interrupt_in_endpoints] } {
108
    puts "Interrupt IN endpoints: $usbtest::interrupt_in_endpoints"
109
    foreach ep $usbtest::interrupt_in_endpoints {
110
        puts [format "  %2d: packet sizes %d to %d" $ep \
111
                $usbtest::interrupt_in($ep,min_size) $usbtest::interrupt_in($ep,max_size)]
112
        if { "" == $usbtest::interrupt_in($ep,devtab) } {
113
            puts "      no devtab entry"
114
        } else {
115
            puts "      devtab entry $usbtest::interrupt_in($ep,devtab)"
116
        }
117
    }
118
}
119
if { 0 != [llength $usbtest::interrupt_out_endpoints] } {
120
    puts "Interrupt OUT endpoints: $usbtest::interrupt_out_endpoints"
121
    foreach ep $usbtest::interrupt_out_endpoints {
122
        puts [format "  %2d: packet sizes %d to %d" $ep \
123
                $usbtest::interrupt_out($ep,min_size) $usbtest::interrupt_out($ep,max_size)]
124
        if { "" == $usbtest::interrupt_out($ep,devtab) } {
125
            puts "      no devtab entry"
126
        } else {
127
            puts "      devtab entry $usbtest::interrupt_out($ep,devtab)"
128
        }
129
    }
130
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.