diff options
Diffstat (limited to 'drivers/ieee1394/oui2c.sh')
-rw-r--r-- | drivers/ieee1394/oui2c.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/ieee1394/oui2c.sh b/drivers/ieee1394/oui2c.sh new file mode 100644 index 000000000000..d50dc7a2d087 --- /dev/null +++ b/drivers/ieee1394/oui2c.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +cat <<EOF +/* Generated file for OUI database */ + +#include <linux/config.h> + +#ifdef CONFIG_IEEE1394_OUI_DB +struct oui_list_struct { + int oui; + char *name; +} oui_list[] = { +EOF + +while read oui name; do + echo " { 0x$oui, \"$name\" }," +done + +cat <<EOF +}; + +#endif /* CONFIG_IEEE1394_OUI_DB */ +EOF |