mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
n64: use enums for reg
Macros tend to be not type-safe. Use enum for register definitions. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
e39e313263
commit
2ce503b35d
@@ -13,11 +13,13 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
#define PI_DRAM_REG 0
|
||||
#define PI_CART_REG 1
|
||||
#define PI_READ_REG 2
|
||||
#define PI_WRITE_REG 3
|
||||
#define PI_STATUS_REG 4
|
||||
enum {
|
||||
PI_DRAM_REG = 0,
|
||||
PI_CART_REG,
|
||||
PI_READ_REG,
|
||||
PI_WRITE_REG,
|
||||
PI_STATUS_REG,
|
||||
};
|
||||
|
||||
#define PI_STATUS_DMA_BUSY (1 << 0)
|
||||
#define PI_STATUS_IO_BUSY (1 << 1)
|
||||
|
Reference in New Issue
Block a user