diff options
author | Mike Isely <isely@pobox.com> | 2007-01-21 23:17:55 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-01-21 23:17:55 -0600 |
commit | 659ced75da379c72af9c077030331a1aaa990a46 (patch) | |
tree | ffb9d9ba4b0bdc125e624ee8ffeb17ebf83c88fa /linux/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h | |
parent | 6fb73d771159f2d1c9936d769ee42b3a7be3086a (diff) | |
download | mediapointer-dvb-s2-659ced75da379c72af9c077030331a1aaa990a46.tar.gz mediapointer-dvb-s2-659ced75da379c72af9c077030331a1aaa990a46.tar.bz2 |
pvrusb2: Use macro names for FX2 commands
From: Michael Krufky <mkrufky@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h b/linux/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h new file mode 100644 index 000000000..556628ad4 --- /dev/null +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-fx2-cmd.h @@ -0,0 +1,28 @@ +#ifndef _PVRUSB2_FX2_CMD_H_ +#define _PVRUSB2_FX2_CMD_H_ + +#define FX2CMD_MEM_WRITE_DWORD 0x01 +#define FX2CMD_MEM_READ_DWORD 0x02 + +#define FX2CMD_MEM_READ_64BYTES 0x28 + +#define FX2CMD_REG_WRITE 0x04 +#define FX2CMD_REG_READ 0x05 + +#define FX2CMD_I2C_WRITE 0x08 +#define FX2CMD_I2C_READ 0x09 + +#define FX2CMD_GET_USB_SPEED 0x0b + +#define FX2CMD_STREAMING_ON 0x36 +#define FX2CMD_STREAMING_OFF 0x37 + +#define FX2CMD_POWER_OFF 0xdc +#define FX2CMD_POWER_ON 0xde + +#define FX2CMD_DEEP_RESET 0xdd + +#define FX2CMD_GET_EEPROM_ADDR 0xeb +#define FX2CMD_GET_IR_CODE 0xec + +#endif /* _PVRUSB2_FX2_CMD_H_ */ |