diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-01-22 00:17:55 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:35:11 -0500 |
commit | 8d3643637e18e6590969436734c22151805d0350 (patch) | |
tree | f6e52e9c6a2fc2de43f6ac14967e08aee2b92ce8 /drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h | |
parent | 05ad390724d1f307111a322325df83282a1479e6 (diff) |
V4L/DVB (5169): Pvrusb2: Use macro names for FX2 commands
This is a maintainability cleanup; use nice names for all the FX2
commands instead of raw bytes. This way we can easily find where we
issue FX commands.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h b/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h new file mode 100644 index 00000000000..556628ad4ff --- /dev/null +++ b/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef _PVRUSB2_FX2_CMD_H_ | ||
2 | #define _PVRUSB2_FX2_CMD_H_ | ||
3 | |||
4 | #define FX2CMD_MEM_WRITE_DWORD 0x01 | ||
5 | #define FX2CMD_MEM_READ_DWORD 0x02 | ||
6 | |||
7 | #define FX2CMD_MEM_READ_64BYTES 0x28 | ||
8 | |||
9 | #define FX2CMD_REG_WRITE 0x04 | ||
10 | #define FX2CMD_REG_READ 0x05 | ||
11 | |||
12 | #define FX2CMD_I2C_WRITE 0x08 | ||
13 | #define FX2CMD_I2C_READ 0x09 | ||
14 | |||
15 | #define FX2CMD_GET_USB_SPEED 0x0b | ||
16 | |||
17 | #define FX2CMD_STREAMING_ON 0x36 | ||
18 | #define FX2CMD_STREAMING_OFF 0x37 | ||
19 | |||
20 | #define FX2CMD_POWER_OFF 0xdc | ||
21 | #define FX2CMD_POWER_ON 0xde | ||
22 | |||
23 | #define FX2CMD_DEEP_RESET 0xdd | ||
24 | |||
25 | #define FX2CMD_GET_EEPROM_ADDR 0xeb | ||
26 | #define FX2CMD_GET_IR_CODE 0xec | ||
27 | |||
28 | #endif /* _PVRUSB2_FX2_CMD_H_ */ | ||