aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/creator
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
commit89c9c53da05197f657dfe8e0bdda6941a2e9a0d4 (patch)
tree624c885995e84df6decddd3291c60a15e50e3c85 /sys/sparc64/creator
parentd420fcda27350a7e2d3d8f3b2c9de6aa74df2e30 (diff)
downloadsrc-89c9c53da05197f657dfe8e0bdda6941a2e9a0d4.tar.gz
src-89c9c53da05197f657dfe8e0bdda6941a2e9a0d4.zip
Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.
Notes
Notes: svn path=/head/; revision=130585
Diffstat (limited to 'sys/sparc64/creator')
-rw-r--r--sys/sparc64/creator/creator.h2
-rw-r--r--sys/sparc64/creator/creator_upa.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/sparc64/creator/creator.h b/sys/sparc64/creator/creator.h
index 6fa42f731525..b3be9e2ae5d3 100644
--- a/sys/sparc64/creator/creator.h
+++ b/sys/sparc64/creator/creator.h
@@ -142,7 +142,7 @@
struct creator_softc {
video_adapter_t sc_va; /* XXX must be first */
- dev_t sc_si;
+ struct cdev *sc_si;
struct resource *sc_reg[FFB_NREG];
bus_space_tag_t sc_bt[FFB_NREG];
diff --git a/sys/sparc64/creator/creator_upa.c b/sys/sparc64/creator/creator_upa.c
index 255d70160211..864f0b8f2c33 100644
--- a/sys/sparc64/creator/creator_upa.c
+++ b/sys/sparc64/creator/creator_upa.c
@@ -212,19 +212,19 @@ creator_upa_attach(device_t dev)
}
static int
-creator_open(dev_t dev, int flags, int mode, struct thread *td)
+creator_open(struct cdev *dev, int flags, int mode, struct thread *td)
{
return (0);
}
static int
-creator_close(dev_t dev, int flags, int mode, struct thread *td)
+creator_close(struct cdev *dev, int flags, int mode, struct thread *td)
{
return (0);
}
static int
-creator_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags,
+creator_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags,
struct thread *td)
{
struct creator_softc *sc;
@@ -262,7 +262,7 @@ creator_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags,
}
static int
-creator_mmap(dev_t dev, vm_offset_t offset, vm_paddr_t *paddr, int prot)
+creator_mmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int prot)
{
struct creator_softc *sc;
struct ffb_map *fm;