add 300,354 to cpu selection
[tomato.git] / release / src / router / www / advanced-misc.asp
blobd92b399c2c8b01fd5c0c8c8a99128328a1523d44
1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>
2 <!--
3 Tomato GUI
4 Copyright (C) 2006-2010 Jonathan Zarate
5 http://www.polarcloud.com/tomato/
7 For use with Tomato Firmware only.
8 No part of this file may be used without permission.
9 -->
10 <html>
11 <head>
12 <meta http-equiv='content-type' content='text/html;charset=utf-8'>
13 <meta name='robots' content='noindex,nofollow'>
14 <title>[<% ident(); %>] Advanced: Miscellaneous</title>
15 <link rel='stylesheet' type='text/css' href='tomato.css'>
16 <link rel='stylesheet' type='text/css' href='color.css'>
17 <script type='text/javascript' src='tomato.js'></script>
19 <!-- / / / -->
21 <script type='text/javascript' src='debug.js'></script>
23 <script type='text/javascript'>
25 // <% nvram("t_features,wait_time,wan_speed,clkfreq,jumbo_frame_enable,jumbo_frame_size,ctf_disable"); %>
27 et1000 = features('1000et');
29 function verifyFields(focused, quiet)
31 E('_jumbo_frame_size').disabled = !E('_f_jumbo_frame_enable').checked;
32 return 1;
35 function save()
37 var fom = E('_fom');
38 fom.jumbo_frame_enable.value = E('_f_jumbo_frame_enable').checked ? 1 : 0;
39 /* CTF-BEGIN */
40 fom.ctf_disable.value = E('_f_ctf_disable').checked ? 0 : 1;
41 /* CTF-END */
43 if ((fom.wan_speed.value != nvram.wan_speed) ||
44 /* CTF-BEGIN */
45 (fom.ctf_disable.value != nvram.ctf_disable) ||
46 /* CTF-END */
47 (fom.jumbo_frame_enable.value != nvram.jumbo_frame_enable) ||
48 (fom.jumbo_frame_size.value != nvram.jumbo_frame_size)) {
49 fom._reboot.value = '1';
50 form.submit(fom, 0);
52 else {
53 form.submit(fom, 1);
56 </script>
58 </head>
59 <body>
60 <form id='_fom' method='post' action='tomato.cgi'>
61 <table id='container' cellspacing=0>
62 <tr><td colspan=2 id='header'>
63 <div class='title'>Tomato</div>
64 <div class='version'>Version <% version(); %></div>
65 </td></tr>
66 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
67 <td id='content'>
68 <div id='ident'><% ident(); %></div>
70 <!-- / / / -->
72 <input type='hidden' name='_nextpage' value='advanced-misc.asp'>
73 <input type='hidden' name='_reboot' value='0'>
75 <input type='hidden' name='jumbo_frame_enable'>
76 <!-- CTF-BEGIN -->
77 <input type='hidden' name='ctf_disable'>
78 <!-- CTF-END -->
80 <div class='section-title'>Miscellaneous</div>
81 <div class='section'>
82 <script type='text/javascript'>
83 a = [];
84 for (i = 3; i <= 20; ++i) a.push([i, i + ' seconds']);
85 createFieldTable('', [
86 { title: 'Boot Wait Time *', name: 'wait_time', type: 'select', options: a, value: fixInt(nvram.wait_time, 3, 20, 3) },
87 { title: 'WAN Port Speed *', name: 'wan_speed', type: 'select', options: [[0,'10Mb Full'],[1,'10Mb Half'],[2,'100Mb Full'],[3,'100Mb Half'],[4,'Auto']], value: nvram.wan_speed },
88 { title: 'CPU Frequency **', name: 'clkfreq', type: 'select', options: [['','Default'],['188,94'],['200,100'],['216,108'],['240,120'],['250,125'],['266,133'],['300,150'],['354,177'],['400,200'],['453,226'],['480,240'],['500,250'],['532,266']], value: nvram.clkfreq },
90 null,
92 /* CTF-BEGIN */
93 { title: 'CTF (Cut-Through Forwarding)', name: 'f_ctf_disable', type: 'checkbox', value: nvram.ctf_disable != '1' },
94 null,
95 /* CTF-END */
97 { title: 'Enable Jumbo Frames *', name: 'f_jumbo_frame_enable', type: 'checkbox', value: nvram.jumbo_frame_enable != '0', hidden: !et1000 },
98 { title: 'Jumbo Frame Size *', name: 'jumbo_frame_size', type: 'text', maxlen: 4, size: 6, value: fixInt(nvram.jumbo_frame_size, 1, 9720, 2000),
99 suffix: ' <small>Bytes (range: 1 - 9720; default: 2000)</small>', hidden: !et1000 }
102 </script>
103 <br>
105 <div>
106 <ul>
107 <br>
108 <br>
109 <small>
110 * Not all models support these options<br>
111 ** You must reboot the router for the new clock frequency to take effect
112 <br>
113 <br>
114 <b>Please check to make sure your router can support these changes before you commit them</b><br>
115 </small>
116 </ul>
117 </div>
120 <!-- / / / -->
122 </td></tr>
123 <tr><td id='footer' colspan=2>
124 <span id='footer-msg'></span>
125 <input type='button' value='Save' id='save-button' onclick='save()'>
126 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'>
127 </td></tr>
128 </table>
129 </form>
130 <script type='text/javascript'>verifyFields(null, 1);</script>
131 </body>
132 </html>