• Alessandro Rubini's avatar
    tools/pfilter-builder: completed · d52fdb87
    Alessandro Rubini authored
    This changes pfilter-builder.c so it really build in user space, but removing
    register setting and creating output files instead.
    
    Running this program creates 3 files, that correspond to the previous
    three #ifdef conditions.  The files are:
    
          rules-plain.bin    this is used for the no-etherbone configuration
          rules-ebone.bin    etherbone setup
          rules-e+nic.bin    etherbon plus 7solution's wr-nic packet filter
    
    The files begin with a magix 0x11223344 word, that allows the soft-core
    to fix any endianness difference (so no hairy mishaps are expected when
    switching to a different soft-core). Then the 40-bit command words are
    saved as 64-bit vaules, LSB-first. The output file is thus an odd number
    of words and no 64-bit alignment is required.
    
    The first three instructions of the packet filter are used to compare
    the destination mac address of the frame.  We now use a fake mac address,
    and the LM32 code will change it while programming the binary.
    
    Please look at this commit while ignoring white-space, as it changes
    indentation while turning #ifdef/#else into if()/else .
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    d52fdb87
Name
Last commit
Last update
arch/lm32 Loading commit data...
boards/arria Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ a28d309b
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrs_main.c Loading commit data...