chiark / gitweb /
wiringpi: much implementation, move pwmc/pwmr
[chiark-tcl.git] / maskmap / maskmap.tct
1 # maskmap - Tcl extension for address mask map data structures
2 # Copyright 2006-2012 Ian Jackson
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this library; if not, see <http://www.gnu.org/licenses/>.
16
17
18 Table *maskmaptoplevel TopLevel_Command
19         addr-map
20                 subcmd  enum(AddrMap/_SubCommand, "addr-map subcommand")
21                 ...     obj
22
23 Table addrmap AddrMap_SubCommand
24         lookup
25                 map     constv(&cht_addrmap_type)
26                 addr    hb
27                 ?def    obj
28                 =>      obj
29         amend-range
30                 map     addrmapv
31                 start   hb
32                 end     hb
33                 data    obj
34         amend-mask
35                 map     addrmapv
36                 prefix  hb
37                 preflen obj
38                 data    obj
39