6 /* Flags passed to configuration functions */
7 #define FLASH_CONF_fl (1 << 0)
8 #define RESET_DEVICE_fl (1 << 1)
9 #define SLLIN_ATTACH_fl (1 << 2)
10 #define SLLIN_DETACH_fl (1 << 3)
12 #define MAX_LIN_ID 0x3F
13 #define PCL_DEFAULT_CONFIG "config.pclin"
15 struct linc_scheduler_entry {
20 /* Index in this array = LIN ID */
21 struct linc_frame_entry {
22 int status; /* 1 = active; 0 = unactive */
27 struct linc_lin_state {
28 int is_active; /* Is LIN device active */
29 int baudrate; /* LIN baudrate */
30 int master_status; /* LIN node type -- Master or Slave */
31 int bus_termination; /* LIN bus termination in device -- Master or Slave */
33 /* Subscriber/publisher table entries */
34 struct linc_frame_entry frame_entry[MAX_LIN_ID + 1];
35 /* Scheduler table entries */
37 struct linc_scheduler_entry scheduler_entry[100];
38 int scheduler_entries_cnt; /* No. of configured scheduler entries */
40 char *dev; /* Path to LIN device to be configured */
41 int flags; /* Flags passed to configuration function
42 of particular device */
45 #endif /* _LIN_CONFIG_H_ */