FreeBSD/sys/dev/ppbus/ppb_base.c
/*
 * ppb_set_mode()
 *
 * Set the operating mode of the chipset, return the previous mode
 */
ppb_set_mode()
Set the operating mode of the chipset, return the previous mode
ppb_set_mode () Set the operating mode of the chipset return the previous mode
int
ppb_set_mode(device_t bus, int mode)
{
	struct ppb_data *ppb = DEVTOSOFTC(bus);
	int old_mode = ppb_get_mode(bus);
	ppb_assert_locked(bus);
	if (PPBUS_SETMODE(device_get_parent(bus), mode))
		return (-1);
	ppb->mode = (mode & PPB_MASK);
	return (old_mode);
}
int ppb_set_mode ( device_t bus , int mode ) { struct ppb_data * ppb = DEVTOSOFTC ( bus ) ; int old_mode = ppb_get_mode ( bus ) ; ppb_assert_locked ( bus ) ; if ( PPBUS_SETMODE ( device_get_parent ( bus ) , mode ) ) return ( -1 ) ; ppb -> mode = ( mode & PPB_MASK ) ; return ( old_mode ) ; }
ppb_set_mode()
 Set the operating mode of the chipset, return the previous mode
ppb_set_mode () Set the operating mode of the chipset return the previous mode
/* XXX yet device mode = ppbus mode = chipset mode */