You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
pcmcia: simplify Status, ExtStatus register access
The Status (CISREG_CCSR) and ExtStatus (CISREG_ESR) registers were only accessed to enable audio output for some drivers and IRQ for serial_cs.c. The former also required setting config_req_t.Attributes to CONF_ENABLE_SPKR; the latter can be simplified to setting this field to CONF_ENABLE_ESR. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-serial@vger.kernel.org CC: linux-scsi@vger.kernel.org Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
+1
-1
@@ -24,7 +24,6 @@ typedef struct config_req_t {
|
||||
u_int Attributes;
|
||||
u_int IntType;
|
||||
u_int ConfigBase;
|
||||
u_char Status, ExtStatus;
|
||||
u_char ConfigIndex;
|
||||
u_int Present;
|
||||
} config_req_t;
|
||||
@@ -34,6 +33,7 @@ typedef struct config_req_t {
|
||||
#define CONF_ENABLE_DMA 0x02
|
||||
#define CONF_ENABLE_SPKR 0x04
|
||||
#define CONF_ENABLE_PULSE_IRQ 0x08
|
||||
#define CONF_ENABLE_ESR 0x10
|
||||
#define CONF_VALID_CLIENT 0x100
|
||||
|
||||
/* IntType field */
|
||||
|
||||
Reference in New Issue
Block a user