Linux Kernel
3.7.1
|
#include <linux/hil_mlc.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/list.h>
Go to the source code of this file.
Macros | |
#define | PREFIX "HIL MLC: " |
#define | HILSEN_SCHED 0x000100 /* Schedule the tasklet */ |
#define | HILSEN_BREAK 0x000200 /* Wait until next pass */ |
#define | HILSEN_UP 0x000400 /* relative node#, decrement */ |
#define | HILSEN_DOWN 0x000800 /* relative node#, increment */ |
#define | HILSEN_FOLLOW 0x001000 /* use retval as next node# */ |
#define | HILSEN_MASK 0x0000ff |
#define | HILSEN_START 0 |
#define | HILSEN_RESTART 1 |
#define | HILSEN_DHR 9 |
#define | HILSEN_DHR2 10 |
#define | HILSEN_IFC 14 |
#define | HILSEN_HEAL0 16 |
#define | HILSEN_HEAL 18 |
#define | HILSEN_ACF 21 |
#define | HILSEN_ACF2 22 |
#define | HILSEN_DISC0 25 |
#define | HILSEN_DISC 27 |
#define | HILSEN_MATCH 40 |
#define | HILSEN_OPERATE 41 |
#define | HILSEN_PROBE 44 |
#define | HILSEN_DSR 52 |
#define | HILSEN_REPOLL 55 |
#define | HILSEN_IFCACF 58 |
#define | HILSEN_END 60 |
#define | HILSEN_NEXT (HILSEN_DOWN | 1) |
#define | HILSEN_SAME (HILSEN_DOWN | 0) |
#define | HILSEN_LAST (HILSEN_UP | 1) |
#define | HILSEN_DOZE (HILSEN_SAME | HILSEN_SCHED | HILSEN_BREAK) |
#define | HILSEN_SLEEP (HILSEN_SAME | HILSEN_BREAK) |
#define | FUNC(funct, funct_arg, zero_rc, neg_rc, pos_rc) { HILSE_FUNC, { .func = funct }, funct_arg, zero_rc, neg_rc, pos_rc }, |
#define | OUT(pack) { HILSE_OUT, { .packet = pack }, 0, HILSEN_NEXT, HILSEN_DOZE, 0 }, |
#define | CTS { HILSE_CTS, { .packet = 0 }, 0, HILSEN_NEXT | HILSEN_SCHED | HILSEN_BREAK, HILSEN_DOZE, 0 }, |
#define | EXPECT(comp, to, got, got_wrong, timed_out) { HILSE_EXPECT, { .packet = comp }, to, got, got_wrong, timed_out }, |
#define | EXPECT_LAST(comp, to, got, got_wrong, timed_out) { HILSE_EXPECT_LAST, { .packet = comp }, to, got, got_wrong, timed_out }, |
#define | EXPECT_DISC(comp, to, got, got_wrong, timed_out) { HILSE_EXPECT_DISC, { .packet = comp }, to, got, got_wrong, timed_out }, |
#define | IN(to, got, got_error, timed_out) { HILSE_IN, { .packet = 0 }, to, got, got_error, timed_out }, |
#define | OUT_DISC(pack) { HILSE_OUT_DISC, { .packet = pack }, 0, 0, 0, 0 }, |
#define | OUT_LAST(pack) { HILSE_OUT_LAST, { .packet = pack }, 0, 0, 0, 0 }, |
#define | TEST_PACKET(x) (HIL_PKT_CMD | (x << HIL_PKT_ADDR_SHIFT) | x << 4 | x) |
Functions | |
MODULE_AUTHOR ("Brian S. Julin <[email protected]>") | |
MODULE_DESCRIPTION ("HIL MLC serio") | |
MODULE_LICENSE ("Dual BSD/GPL") | |
EXPORT_SYMBOL (hil_mlc_register) | |
EXPORT_SYMBOL (hil_mlc_unregister) | |
int | hil_mlc_register (hil_mlc *mlc) |
int | hil_mlc_unregister (hil_mlc *mlc) |
module_init (hil_mlc_init) | |
module_exit (hil_mlc_exit) | |
#define CTS { HILSE_CTS, { .packet = 0 }, 0, HILSEN_NEXT | HILSEN_SCHED | HILSEN_BREAK, HILSEN_DOZE, 0 }, |
#define EXPECT | ( | comp, | |
to, | |||
got, | |||
got_wrong, | |||
timed_out | |||
) | { HILSE_EXPECT, { .packet = comp }, to, got, got_wrong, timed_out }, |
#define EXPECT_DISC | ( | comp, | |
to, | |||
got, | |||
got_wrong, | |||
timed_out | |||
) | { HILSE_EXPECT_DISC, { .packet = comp }, to, got, got_wrong, timed_out }, |
#define EXPECT_LAST | ( | comp, | |
to, | |||
got, | |||
got_wrong, | |||
timed_out | |||
) | { HILSE_EXPECT_LAST, { .packet = comp }, to, got, got_wrong, timed_out }, |
#define FUNC | ( | funct, | |
funct_arg, | |||
zero_rc, | |||
neg_rc, | |||
pos_rc | |||
) | { HILSE_FUNC, { .func = funct }, funct_arg, zero_rc, neg_rc, pos_rc }, |
#define HILSEN_DOWN 0x000800 /* relative node#, increment */ |
#define HILSEN_DOZE (HILSEN_SAME | HILSEN_SCHED | HILSEN_BREAK) |
#define HILSEN_FOLLOW 0x001000 /* use retval as next node# */ |
#define HILSEN_NEXT (HILSEN_DOWN | 1) |
#define HILSEN_SAME (HILSEN_DOWN | 0) |
#define HILSEN_SLEEP (HILSEN_SAME | HILSEN_BREAK) |
#define HILSEN_UP 0x000400 /* relative node#, decrement */ |
#define OUT | ( | pack | ) | { HILSE_OUT, { .packet = pack }, 0, HILSEN_NEXT, HILSEN_DOZE, 0 }, |
#define OUT_DISC | ( | pack | ) | { HILSE_OUT_DISC, { .packet = pack }, 0, 0, 0, 0 }, |
#define OUT_LAST | ( | pack | ) | { HILSE_OUT_LAST, { .packet = pack }, 0, 0, 0, 0 }, |
#define TEST_PACKET | ( | x | ) | (HIL_PKT_CMD | (x << HIL_PKT_ADDR_SHIFT) | x << 4 | x) |
EXPORT_SYMBOL | ( | hil_mlc_register | ) |
EXPORT_SYMBOL | ( | hil_mlc_unregister | ) |
MODULE_AUTHOR | ( | "Brian S. Julin <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "HIL MLC serio" | ) |
module_exit | ( | hil_mlc_exit | ) |
module_init | ( | hil_mlc_init | ) |
MODULE_LICENSE | ( | "Dual BSD/GPL" | ) |