dvcfg.h (92761) | dvcfg.h (126928) |
---|---|
1/* $FreeBSD: head/sys/compat/netbsd/dvcfg.h 92761 2002-03-20 05:48:58Z alfred $ */ | 1/* $FreeBSD: head/sys/compat/netbsd/dvcfg.h 126928 2004-03-13 19:46:27Z peter $ */ |
2/* $NetBSD$ */ 3/* 4 * [NetBSD for NEC PC98 series] 5 * Copyright (c) 1996 NetBSD/pc98 porting staff. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 28 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31/* 32 * Copyright (c) 1996 Naofumi HONDA. All rights reserved. 33 */ 34 | 2/* $NetBSD$ */ 3/* 4 * [NetBSD for NEC PC98 series] 5 * Copyright (c) 1996 NetBSD/pc98 porting staff. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 28 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31/* 32 * Copyright (c) 1996 Naofumi HONDA. All rights reserved. 33 */ 34 |
35#ifndef _I386_DVCFG_H_ 36#define _I386_DVCFG_H_ | 35#ifndef _COMPAT_NETBSD_DVCFG_H_ 36#define _COMPAT_NETBSD_DVCFG_H_ |
37 38typedef void *dvcfg_hw_t; 39 40struct dvcfg_hwsel { 41 int cfg_max; 42 43 dvcfg_hw_t *cfg_sel; 44}; --- 12 unchanged lines hidden (view full) --- 57 struct dvcfg_hwsel *selp; 58 u_int num; 59{ 60 61 return ((num >= selp->cfg_max) ? 0 : selp->cfg_sel[num]); 62} 63 64#define DVCFG_HW(SELP, NUM) dvcfg_hw((SELP), (NUM)) | 37 38typedef void *dvcfg_hw_t; 39 40struct dvcfg_hwsel { 41 int cfg_max; 42 43 dvcfg_hw_t *cfg_sel; 44}; --- 12 unchanged lines hidden (view full) --- 57 struct dvcfg_hwsel *selp; 58 u_int num; 59{ 60 61 return ((num >= selp->cfg_max) ? 0 : selp->cfg_sel[num]); 62} 63 64#define DVCFG_HW(SELP, NUM) dvcfg_hw((SELP), (NUM)) |
65#endif /* _I386_DVCFG_H_ */ | 65#endif /* _COMPAT_NETBSD_DVCFG_H_ */ |