|
1 | 1 | <html> |
2 | 2 | <head> |
3 | 3 | <title>GreenSpring OctalUart IP Module Support</title> |
4 | | -<!-- Changed by: Peregrine McGehee, 2-May-1996 --> |
5 | | -<!-- Copied from http://www.cfht.hawaii.edu/~tcs/tcsiv/tygsoctal.html |
6 | | - and edited slightly by Andrew Johnson, 9-March-1999 --> |
7 | 4 |
|
8 | 5 | </head> |
9 | 6 | <body text="#000000" bgcolor="#ffffff" link="#000080" vlink="#707070" alink="0000080"> |
|
28 | 25 | Configuration Example</h2> |
29 | 26 |
|
30 | 27 | <P> |
31 | | -The following is an example of a startup script (st.cmd) segment that creates |
32 | | -and configures IP carriers, OctalUart IP modules, and tty devices. This example |
| 28 | +The following is an example of a startup script (st.cmd) segment that creates |
| 29 | +and configures IP carriers, OctalUart IP modules, and tty devices. This example |
33 | 30 | is compatible with both vxWorks and iocsh startup scripts. |
34 | 31 | </P> |
35 | 32 |
|
36 | 33 | <blockquote> |
37 | 34 | <pre> |
38 | 35 | # Initialize the drvIpac carriers. |
39 | 36 | # ------------------------------- |
40 | | -# ipacAdd<I>CarrierType</I>(char *cardParams) |
41 | | -# <I>CarrierType</I> - VIPC310, VIPC610, VIPC610_01, VIPC616, VIPC616_01, |
42 | | -# MVME162, or ATC40. |
43 | | -# cardParams - carrier-specific init parameters. |
44 | | - |
45 | 37 | # carrier#0 |
46 | 38 | ipacAddMVME162 "A:m=0xe0000000,64 l=3,2" |
47 | 39 | # carrier#1 |
48 | | -ipacAddVIPC616_01 "0x6000,0xA00000,128" |
| 40 | +ipacAddVIPC616_01 "0x6400,0xB0000000" |
49 | 41 | # carrier#2 |
50 | | -ipacAddVIPC616_01 "0x6400,0xA80000,128" |
| 42 | +ipacAddTVME200 "602fb00" |
51 | 43 |
|
52 | 44 | # Allocate the number of tyGSOctal modules to support. |
53 | 45 | # ---------------------------------------------------- |
|
66 | 58 | # Init two IP-Octal modules from the MVME162 carrier; the 1st module is in |
67 | 59 | # slot A, the second module is in slot B. |
68 | 60 | tyGSOctalModuleInit "Mod0", "232", 0x80, 0, 0 |
69 | | -tyGSOctalModuleInit "Mod1", "232", 0x90, 0, 1 |
| 61 | +tyGSOctalModuleInit "Mod1", "232", 0x81, 0, 1 |
70 | 62 |
|
71 | 63 | # Init two IP-Octal modules from the 1st SBS VIPC616_01 carrier; the 1st |
72 | 64 | # module is in slot A, the 2nd module is in slot C. |
73 | | -tyGSOctalModuleInit "Mod2", "232", 0x80, 1, 0 |
74 | | -tyGSOctalModuleInit "Mod3", "232", 0x90, 1, 2 |
| 65 | +tyGSOctalModuleInit "Mod2", "232", 0x82, 1, 0 |
| 66 | +tyGSOctalModuleInit "Mod3", "232", 0x83, 1, 2 |
75 | 67 |
|
76 | 68 | # Init two IP-Octal modules from the 2nd SBS VIPC616_01 carrier; the 1st |
77 | 69 | # module is in slot B, the second module is in slot D. |
78 | | -tyGSOctalModuleInit "Mod4", "485", 0x80, 2, 1 |
79 | | -tyGSOctalModuleInit "Mod5", "485", 0x90, 2, 3 |
| 70 | +tyGSOctalModuleInit "Mod4", "485", 0x84, 2, 1 |
| 71 | +tyGSOctalModuleInit "Mod5", "485", 0x85, 2, 3 |
80 | 72 |
|
81 | 73 | # Create tty devices. |
82 | 74 | # ------------------ |
|
89 | 81 | # wrtBufSize - write buffer size, in bytes. |
90 | 82 |
|
91 | 83 | # Create two tty ports on Mod0 with <I>portname</I> based on the convention; |
92 | | -# "/tyGS<I>carrier#/moduleID/port#</I>". |
93 | | -tyGSOctalDevCreate "/tyGS0/Mod0/0", "Mod0", 0, 512, 512 |
94 | | -tyGSOctalDevCreate "/tyGS0/Mod0/1", "Mod0", 1, 512, 512 |
| 84 | +# "/tyGS/<I>carrier#,slot#</I>/<I>moduleID</I>/port#</I>". |
| 85 | +tyGSOctalDevCreate "/tyGS/0,0/0", "Mod0", 0, 512, 512 |
| 86 | +tyGSOctalDevCreate "/tyGS/0,0/1", "Mod0", 1, 512, 512 |
95 | 87 |
|
96 | 88 | # Initialze all the remaining uninitialized Mod0 ports; i.e., /tyGS0/0/[2-7]. |
97 | | -tyGSOctalDevCreateAll "/tyGS0/Mod0/", "Mod0", 512, 512 |
| 89 | +tyGSOctalDevCreateAll "/tyGS/0,0/", "Mod0", 512, 512 |
98 | 90 |
|
99 | 91 | # Initialize all the Mod1 ports. |
100 | | -tyGSOctalDevCreateAll "/tyGS0/Mod1/", "Mod1", 512, 512 |
| 92 | +tyGSOctalDevCreateAll "/tyGS/0,1/", "Mod1", 512, 512 |
101 | 93 | # Initialize all the Mod2 ports. |
102 | | -tyGSOctalDevCreateAll "/tyGS1/Mod2/", "Mod2", 512, 512 |
| 94 | +tyGSOctalDevCreateAll "/tyGS/1,0/", "Mod2", 512, 512 |
103 | 95 |
|
104 | 96 | # Configure the ports. |
105 | 97 | # -------------------- |
|
112 | 104 | # stop - stop bits; 1 or 2. |
113 | 105 | # bits - data bits; 5,6,7 or 8. |
114 | 106 | # flow - flow control; hardware - 'H' or none - 'N'. |
115 | | -tyGSOctalConfig "/tyGS0/Mod0/0", 38400, 'N', 1, 8, 'N' |
116 | | -# Other ports default to 9600, 'N', 1, 8, 'N'</pre> |
| 107 | +tyGSOctalConfig "/tyGS/0,0/0", 38400, 'N', 1, 8, 'N' |
| 108 | + |
| 109 | +# Ports default to 9600, 'N', 1, 8, 'N'</pre> |
117 | 110 | </blockquote> |
118 | 111 |
|
119 | 112 | </body> |
|
0 commit comments