Some misc utils and files from the XiVO IPBX Open Hardware project ================================================================== architecture_driver_xhfc.dia An old architecture diagram for the interactions surrounding the XHFC driver. Prolly obsolete. convert.rb Writes C preprocessor definitions for bit offsets in a register, from text copypasted from an Intel datasheet from xpdf. Paste the definition in stdin and press enter. :: no@yorceev ~/misc (master) % ruby1.9.1 convert.rb STATUS 31 : 10 Rsvd 09 : 08 Reserved 07 : 06 SPEED 05 LINKMODE 04 TXOFF 03 : 02 Rsvd 01 RSVD 00 FD #define STATUS_SPEED 6 #define STATUS_LINKMODE 5 #define STATUS_TXOFF 4 #define STATUS_FD 0 convert2.rb Analyses the content of a register which value is passed on the command line and definition is pasted from an Intel datasheet in xpdf. End the definition with Control+D. :: no@yorceev ~/misc (master) % ruby1.9.1 convert2.rb 0x000440b0 31 : 10 Rsvd 09 : 08 Reserved 07 : 06 SPEED 05 LINKMODE 04 TXOFF 03 : 02 Rsvd 01 RSVD 00 FD 31:10 0000000000000100010000b 110h 420o 9:8 00b 0h 0o 7:6 SPEED 10b 2h 2o 5:5 LINKMODE 1b 1h 1o 4:4 TXOFF 1b 1h 1o 3:2 00b 0h 0o 1:1 0b 0h 0o 0:0 FD 0b 0h 0o dump_stuff A Linux kernel module which, on load, dumps the content of the PCI config and MMIO regions for the EP80579 IMCH. find_nitpicking.rb Filters a patch by remothing hunks consisting only of whitespace change. fix_linux_indent.rb Intended to be called from VIM by selecting a region and starting the script as a filtering command on the regions; it reindents the region while keeping it at the right indentation. git_checkpatch.sh Obsolete; exemple of using git and checkpatch.pl to check if a patch follows Linux coding guidelines. bin.c Prints an integer in decimal, hexadecimal and binary. replace_dowhile.rb Et Coccinelle, c'est pour les chiens?