Deleted Added
full compact
iir_ctrl.c (103694) iir_ctrl.c (108320)
1/* $FreeBSD: head/sys/dev/iir/iir_ctrl.c 103694 2002-09-20 16:59:14Z phk $ */
1/* $FreeBSD: head/sys/dev/iir/iir_ctrl.c 108320 2002-12-27 16:28:31Z rwatson $ */
2/*
3 * Copyright (c) 2000-01 Intel Corporation
4 * All Rights Reserved
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 90 unchanged lines hidden (view full) ---

100 */
101dev_t
102gdt_make_dev(int unit)
103{
104 dev_t dev;
105
106#ifdef SDEV_PER_HBA
107 dev = make_dev(&iir_cdevsw, hba2minor(unit), UID_ROOT, GID_OPERATOR,
2/*
3 * Copyright (c) 2000-01 Intel Corporation
4 * All Rights Reserved
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 90 unchanged lines hidden (view full) ---

100 */
101dev_t
102gdt_make_dev(int unit)
103{
104 dev_t dev;
105
106#ifdef SDEV_PER_HBA
107 dev = make_dev(&iir_cdevsw, hba2minor(unit), UID_ROOT, GID_OPERATOR,
108 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, "iir%d", unit);
108 S_IRUSR | S_IWUSR | S_IRGRP, "iir%d", unit);
109#else
110 if (sdev_made)
111 return (0);
112 dev = make_dev(&iir_cdevsw, 0, UID_ROOT, GID_OPERATOR,
109#else
110 if (sdev_made)
111 return (0);
112 dev = make_dev(&iir_cdevsw, 0, UID_ROOT, GID_OPERATOR,
113 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, "iir");
113 S_IRUSR | S_IWUSR | S_IRGRP, "iir");
114 sdev_made = 1;
115#endif
116 return (dev);
117}
118
119void
120gdt_destroy_dev(dev_t dev)
121{

--- 251 unchanged lines hidden ---
114 sdev_made = 1;
115#endif
116 return (dev);
117}
118
119void
120gdt_destroy_dev(dev_t dev)
121{

--- 251 unchanged lines hidden ---