SCCS-vsn: sys/hp/dev/grf.c 7.15
SCCS-vsn: sys/hp/dev/hil.c 7.15
*
* from: Utah $Hdr: grf.c 1.32 92/01/21$
*
*
* from: Utah $Hdr: grf.c 1.32 92/01/21$
*
- * @(#)grf.c 7.14 (Berkeley) %G%
+ * @(#)grf.c 7.15 (Berkeley) %G%
/*
* XXX: cannot handle both HPUX and BSD processes at the same time
*/
/*
* XXX: cannot handle both HPUX and BSD processes at the same time
*/
- if (curproc->p_flag & SHPUX)
+ if (curproc->p_md.md_flags & MDP_HPUX)
if (gp->g_flags & GF_BSDOPEN)
return(EBUSY);
else
if (gp->g_flags & GF_BSDOPEN)
return(EBUSY);
else
int error;
#ifdef HPUXCOMPAT
int error;
#ifdef HPUXCOMPAT
+ if (p->p_md.md_flags & MDP_HPUX)
return(hpuxgrfioctl(dev, cmd, data, flag, p));
#endif
error = 0;
return(hpuxgrfioctl(dev, cmd, data, flag, p));
#endif
error = 0;
*
* from: Utah $Hdr: hil.c 1.38 92/01/21$
*
*
* from: Utah $Hdr: hil.c 1.38 92/01/21$
*
- * @(#)hil.c 7.14 (Berkeley) %G%
+ * @(#)hil.c 7.15 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
* 3. BSD processes default to shared queue interface.
* Multiple processes can open the device.
*/
* 3. BSD processes default to shared queue interface.
* Multiple processes can open the device.
*/
- if (p->p_flag & SHPUX) {
+ if (p->p_md.md_flags & MDP_HPUX) {
if (dptr->hd_flags & (HIL_READIN|HIL_QUEUEIN))
return(EBUSY);
dptr->hd_flags |= HIL_READIN;
if (dptr->hd_flags & (HIL_READIN|HIL_QUEUEIN))
return(EBUSY);
dptr->hd_flags |= HIL_READIN;
if (device && (dptr->hd_flags & HIL_PSEUDO))
return (0);
if (device && (dptr->hd_flags & HIL_PSEUDO))
return (0);
- if (p && (p->p_flag & SHPUX) == 0) {
+ if (p && (p->p_md.md_flags & MDP_HPUX) == 0) {
/*
* If this is the loop device,
* free up all queues belonging to this process.
/*
* If this is the loop device,
* free up all queues belonging to this process.
+ if (p->p_md.md_flags & MDP_HPUX)
return(hpuxhilioctl(dev, cmd, data, flag));
#endif
return(hpuxhilioctl(dev, cmd, data, flag));
#endif
send_hil_cmd(hilp->hl_addr, (cmd & 0xFF), NULL, 0, NULL);
break;
send_hil_cmd(hilp->hl_addr, (cmd & 0xFF), NULL, 0, NULL);
break;
case HILIOCRRT:
/* Transfer the real time to the 8042 data buffer */
send_hil_cmd(hilp->hl_addr, (cmd & 0xFF), NULL, 0, NULL);
case HILIOCRRT:
/* Transfer the real time to the 8042 data buffer */
send_hil_cmd(hilp->hl_addr, (cmd & 0xFF), NULL, 0, NULL);