aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-05-08 03:36:38 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:24 -0400
commitb81cc310f1309f6090a5655af1fe5831ded53233 (patch)
tree9897fa9dab4f446ab6703783a34517398947e212
parentcff9494fadb09e851b66096e3fd6fc08721bd683 (diff)
Char: cyclades, unexport struct cyclades_card
Do not export internal card data to userspace. cytune doesn't use this anyway. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/char/cyclades.c8
-rw-r--r--include/linux/cyclades.h15
2 files changed, 2 insertions, 21 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 249f443115f2..1b4ff138b8ff 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -4049,14 +4049,6 @@ cy_ioctl(struct tty_struct *tty, struct file *file,
4049 case CYGETRTSDTR_INV: 4049 case CYGETRTSDTR_INV:
4050 ret_val = info->rtsdtr_inv; 4050 ret_val = info->rtsdtr_inv;
4051 break; 4051 break;
4052 case CYGETCARDINFO:
4053 if (copy_to_user(argp, &cy_card[info->card],
4054 sizeof(struct cyclades_card))) {
4055 ret_val = -EFAULT;
4056 break;
4057 }
4058 ret_val = 0;
4059 break;
4060 case CYGETCD1400VER: 4052 case CYGETCD1400VER:
4061 ret_val = info->chip_rev; 4053 ret_val = info->chip_rev;
4062 break; 4054 break;
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h
index f0ad61f69792..e76f486550c6 100644
--- a/include/linux/cyclades.h
+++ b/include/linux/cyclades.h
@@ -110,7 +110,6 @@ struct cyclades_idle_stats {
110#define CYZSETPOLLCYCLE 0x43590e 110#define CYZSETPOLLCYCLE 0x43590e
111#define CYZGETPOLLCYCLE 0x43590f 111#define CYZGETPOLLCYCLE 0x43590f
112#define CYGETCD1400VER 0x435910 112#define CYGETCD1400VER 0x435910
113#define CYGETCARDINFO 0x435911
114#define CYSETWAIT 0x435912 113#define CYSETWAIT 0x435912
115#define CYGETWAIT 0x435913 114#define CYGETWAIT 0x435913
116 115
@@ -506,8 +505,9 @@ struct ZFW_CTRL {
506/****************** ****************** *******************/ 505/****************** ****************** *******************/
507#endif 506#endif
508 507
508#ifdef __KERNEL__
509
509/* Per card data structure */ 510/* Per card data structure */
510struct resource;
511struct cyclades_card { 511struct cyclades_card {
512 unsigned long base_phys; 512 unsigned long base_phys;
513 unsigned long ctl_phys; 513 unsigned long ctl_phys;
@@ -520,20 +520,9 @@ struct cyclades_card {
520 int bus_index; /* address shift - 0 for ISA, 1 for PCI */ 520 int bus_index; /* address shift - 0 for ISA, 1 for PCI */
521 int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */ 521 int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */
522 struct pci_dev *pdev; 522 struct pci_dev *pdev;
523#ifdef __KERNEL__
524 spinlock_t card_lock; 523 spinlock_t card_lock;
525#else
526 unsigned long filler;
527#endif
528}; 524};
529 525
530struct cyclades_chip {
531 int filler;
532};
533
534
535#ifdef __KERNEL__
536
537/*************************************** 526/***************************************
538 * Memory access functions/macros * 527 * Memory access functions/macros *
539 * (required to support Alpha systems) * 528 * (required to support Alpha systems) *