diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-05-28 04:19:54 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-05-28 04:19:54 +0000 |
commit | 2a98051bbfed88ae0fee77862ed31af2c01683bd (patch) | |
tree | 6d6cec7ef23f372c11031712ead3c1edae9d14fb /sys/dev/pci/fmsreg.h | |
parent | 938bcf4e70ceb3ddfd9bfdfb2a52bf6326763b8f (diff) |
fix the fms attachment printfs and move out the radio parts to the fmsradio.c; from jumbo@ and some fixes from mickey@
Diffstat (limited to 'sys/dev/pci/fmsreg.h')
-rw-r--r-- | sys/dev/pci/fmsreg.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/dev/pci/fmsreg.h b/sys/dev/pci/fmsreg.h index 6e56e6ac247..3f167972224 100644 --- a/sys/dev/pci/fmsreg.h +++ b/sys/dev/pci/fmsreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fmsreg.h,v 1.1 2002/05/06 16:37:43 mickey Exp $ */ +/* $OpenBSD: fmsreg.h,v 1.2 2002/05/28 04:19:53 mickey Exp $ */ /* $NetBSD: fms.c,v 1.5.4.1 2000/06/30 16:27:50 simonb Exp $ */ /*- @@ -88,15 +88,13 @@ #define FM_CODEC_DATA 0x2c #define FM_IO_CTL 0x52 -#define FM_IO_GPIO 0xf000 -#define FM_IO_GPIO0 0x0001 -#define FM_IO_GPIO1 0x0002 -#define FM_IO_GPIO2 0x0004 -#define FM_IO_GPIO3 0x0008 -#define FM_IO_GPIO0_IN 0x0100 /* 1 - input; 0 - output */ -#define FM_IO_GPIO1_IN 0x0200 -#define FM_IO_GPIO2_IN 0x0400 -#define FM_IO_GPIO3_IN 0x0800 +#define FM_IO_GPIO(x) ((x) << 12) +#define FM_IO_GPIO_ALL FM_IO_GPIO(0xf) +#define FM_IO_GPIO_IN(x) ((x) << 8) +#define FM_IO_PIN0 0x0001 +#define FM_IO_PIN1 0x0002 +#define FM_IO_PIN2 0x0004 +#define FM_IO_PIN3 0x0008 #define FM_CARD_CTL 0x54 |