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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [io/] [usb/] [slave/] [current/] [host/] [list.tcl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# {{{  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 Free Software Foundation, 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      
18
## version.                                                                 
19
##
20
## eCos is distributed in the hope that it will be useful, but WITHOUT      
21
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
22
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
23
## for more details.                                                        
24
##
25
## You should have received a copy of the GNU General Public License        
26
## along with eCos; if not, write to the Free Software Foundation, Inc.,    
27
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
28
##
29
## As a special exception, if other files instantiate templates or use      
30
## macros or inline functions from this file, or you compile this file      
31
## and link it with other works to produce a work based on this file,       
32
## this file does not by itself cause the resulting work to be covered by   
33
## the GNU General Public License. However the source code for this file    
34
## must still be made available in accordance with section (3) of the GNU   
35
## General Public License v2.                                               
36
##
37
## This exception does not invalidate any other reasons why a work based    
38
## on this file might be covered by the GNU General Public License.         
39
## -------------------------------------------                              
40
## ####ECOSGPLCOPYRIGHTEND####                                              
41
#===============================================================================
42
######DESCRIPTIONBEGIN####
43
#
44
# Author(s):    bartv
45
# Date:         2001-08-21
46
# Purpose:      Provide details of the available endpoints
47
#
48
#####DESCRIPTIONEND####
49
#===============================================================================
50
#
51
 
52
# }}}
53
 
54
puts "Control endpoint: valid packet sizes are $usbtest::control(min_size) to $usbtest::control(max_size)"
55
 
56
if { 0 != [llength $usbtest::bulk_in_endpoints] } {
57
    puts "Bulk IN endpoints: $usbtest::bulk_in_endpoints"
58
    foreach ep $usbtest::bulk_in_endpoints {
59
        puts [format "  %2d: packet sizes %d to %d, padding %d" $ep \
60
                $usbtest::bulk_in($ep,min_size) $usbtest::bulk_in($ep,max_size) $usbtest::bulk_in($ep,max_in_padding)]
61
        if { "" == $usbtest::bulk_in($ep,devtab) } {
62
            puts "      no devtab entry"
63
        } else {
64
            puts "      devtab entry $usbtest::bulk_in($ep,devtab)"
65
        }
66
    }
67
}
68
if { 0 != [llength $usbtest::bulk_out_endpoints] } {
69
    puts "Bulk OUT endpoints: $usbtest::bulk_out_endpoints"
70
    foreach ep $usbtest::bulk_out_endpoints {
71
        puts [format "  %2d: packet sizes %d to %d" $ep \
72
                $usbtest::bulk_out($ep,min_size) $usbtest::bulk_out($ep,max_size)]
73
        if { "" == $usbtest::bulk_out($ep,devtab) } {
74
            puts "      no devtab entry"
75
        } else {
76
            puts "      devtab entry $usbtest::bulk_out($ep,devtab)"
77
        }
78
    }
79
}
80
 
81
if { 0 != [llength $usbtest::isochronous_in_endpoints] } {
82
    puts "Isochronous IN endpoints: $usbtest::isochronous_in_endpoints"
83
    foreach ep $usbtest::isochronous_in_endpoints {
84
        puts [format "  %2d: packet sizes %d to %d" $ep \
85
                $usbtest::isochronous_in($ep,min_size) $usbtest::isochronous_in($ep,max_size)]
86
        if { "" == $usbtest::isochronous_in($ep,devtab) } {
87
            puts "      no devtab entry"
88
        } else {
89
            puts "      devtab entry $usbtest::isochronous_in($ep,devtab)"
90
        }
91
    }
92
}
93
if { 0 != [llength $usbtest::isochronous_out_endpoints] } {
94
    puts "Isochronous OUT endpoints: $usbtest::isochronous_out_endpoints"
95
    foreach ep $usbtest::isochronous_out_endpoints {
96
        puts [format "  %2d: packet sizes %d to %d" $ep \
97
                $usbtest::isochronous_out($ep,min_size) $usbtest::isochronous_out($ep,max_size)]
98
        if { "" == $usbtest::isochronous_out($ep,devtab) } {
99
            puts "      no devtab entry"
100
        } else {
101
            puts "      devtab entry $usbtest::isochronous_out($ep,devtab)"
102
        }
103
    }
104
}
105
 
106
if { 0 != [llength $usbtest::interrupt_in_endpoints] } {
107
    puts "Interrupt IN endpoints: $usbtest::interrupt_in_endpoints"
108
    foreach ep $usbtest::interrupt_in_endpoints {
109
        puts [format "  %2d: packet sizes %d to %d" $ep \
110
                $usbtest::interrupt_in($ep,min_size) $usbtest::interrupt_in($ep,max_size)]
111
        if { "" == $usbtest::interrupt_in($ep,devtab) } {
112
            puts "      no devtab entry"
113
        } else {
114
            puts "      devtab entry $usbtest::interrupt_in($ep,devtab)"
115
        }
116
    }
117
}
118
if { 0 != [llength $usbtest::interrupt_out_endpoints] } {
119
    puts "Interrupt OUT endpoints: $usbtest::interrupt_out_endpoints"
120
    foreach ep $usbtest::interrupt_out_endpoints {
121
        puts [format "  %2d: packet sizes %d to %d" $ep \
122
                $usbtest::interrupt_out($ep,min_size) $usbtest::interrupt_out($ep,max_size)]
123
        if { "" == $usbtest::interrupt_out($ep,devtab) } {
124
            puts "      no devtab entry"
125
        } else {
126
            puts "      devtab entry $usbtest::interrupt_out($ep,devtab)"
127
        }
128
    }
129
}

powered by: WebSVN 2.1.0

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