summaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/oui2c.sh
blob: d50dc7a2d087f21e9d461a35785122d35bbed27a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
OpenPOWER on IntegriCloud