blob: 614a0a76f1f283d7bc02ca8c7699ee7c7a170906 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#
# Copyright (c) 2010 Wojciech A. Koszek <wkoszek@FreeBSD.org>
# BSD 2-clause license
#
# This is devd.conf(5) file for FreeBSD devd(8) daemon. It provides rules
# describing actions necessary to load firmware for Xilinx USB programmers.
# It is assumed that Xilinx tools got installed under /compat/linux/opt/...
# (default installer's location)
#
# Those devices appear in the system as ugen(4) instances only. Once fxload(8)
# reprograms those, they reappear as different devices.
#
# All configuration variables were taken from:
#
# /compat/linux/opt/Xilinx/11.1/common/bin/lin/xusbdfwu.rules
#
# and adopted accordingly for FreeBSD infrastructure.
#
options {
set X "/compat/linux/opt/Xilinx/11.1/common/bin/lin";
set F "/usr/local/sbin/fxload -v -t fx2";
};
attach 100 {
device-name "^ugen";
match "vendor" "0x03fd";
match "product" "0x0007";
action "$F -I $X/xusbdfwu.hex -D vid=$vendor,pid=$product";
};
attach 100 {
device-name "^ugen";
match "vendor" "0x03fd";
match "product" "0x0009";
action "$F -I $X/xusb_xup.hex -D vid=$vendor,pid=$product";
};
attach 100 {
device-name "^ugen";
match "vendor" "0x03fd";
match "product" "0x000d";
action "$F -I $X/xusbdfwu.hex -D vid=$vendor,pid=$product";
};
attach 100 {
device-name "^ugen";
match "vendor" "0x03fd";
match "product" "0x000f";
action "$F -I $X/xusb_xlp.hex -D vid=$vendor,pid=$product";
};
attach 100 {
device-name "^ugen";
match "vendor" "0x03fd";
match "product" "0x0013";
action "$F -I $X/xusb_xp2.hex -D vid=$vendor,pid=$product";
};
attach 100 {
device-name "^ugen";
match "vendor" "0x03fd";
match "product" "0x0015";
action "$F -I $X/xusb_xse.hex -D vid=$vendor,pid=$product";
};
|