aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/meteor.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
commit4e2f199e0c9ada1b226f685a848abb1420a1ff8f (patch)
treec7dba053fd70eed731104c273f0605d351ea65cd /sys/pci/meteor.c
parent7a1c7bc99f36d929470a570884dcdacb005fd08f (diff)
downloadsrc-4e2f199e0c9ada1b226f685a848abb1420a1ff8f.tar.gz
src-4e2f199e0c9ada1b226f685a848abb1420a1ff8f.zip
This commit should be a extensive NO-OP:
Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
Notes
Notes: svn path=/head/; revision=47625
Diffstat (limited to 'sys/pci/meteor.c')
-rw-r--r--sys/pci/meteor.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c
index 90157d23cc29..ca50c9a162d0 100644
--- a/sys/pci/meteor.c
+++ b/sys/pci/meteor.c
@@ -228,10 +228,27 @@ static d_ioctl_t meteor_ioctl;
static d_mmap_t meteor_mmap;
#define CDEV_MAJOR 67
-static struct cdevsw meteor_cdevsw =
- { meteor_open, meteor_close, meteor_read, meteor_write, /*67*/
- meteor_ioctl, nostop, nullreset, nodevtotty,/* Meteor */
- seltrue, meteor_mmap, NULL, "meteor", NULL, -1 };
+static struct cdevsw meteor_cdevsw = {
+ /* open */ meteor_open,
+ /* close */ meteor_close,
+ /* read */ meteor_read,
+ /* write */ meteor_write,
+ /* ioctl */ meteor_ioctl,
+ /* stop */ nostop,
+ /* reset */ noreset,
+ /* devtotty */ nodevtotty,
+ /* poll */ nopoll,
+ /* mmap */ meteor_mmap,
+ /* strategy */ nostrategy,
+ /* name */ "meteor",
+ /* parms */ noparms,
+ /* maj */ CDEV_MAJOR,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ 0,
+ /* maxio */ 0,
+ /* bmaj */ -1
+};
#endif
static mreg_t saa7116_pci_default[sizeof(struct saa7116_regs)/sizeof(mreg_t)]={