- use struct platid_date instead of struct vrc4172pwm_platid_param.
- delete struct vrc4172pwm_platid_param. XXX: vrc4172pwm driver currenty not functional yet.
This commit is contained in:
parent
6b94677e25
commit
fdbe4057ec
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: vrc4172pwm.c,v 1.3 2000/12/29 11:44:44 sato Exp $ */
|
/* $Id: vrc4172pwm.c,v 1.4 2000/12/29 15:54:17 sato Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 SATO Kazumi. All rights reserved.
|
* Copyright (c) 2000 SATO Kazumi. All rights reserved.
|
||||||
|
@ -88,7 +88,7 @@ struct vrc4172pwm_param vrc4172pwm_mcr530_param = {
|
||||||
{ 0x16, 0x1b, 0x20, 0x25, 0x2a, 0x30, 0x37, 0x3f }
|
{ 0x16, 0x1b, 0x20, 0x25, 0x2a, 0x30, 0x37, 0x3f }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct vrc4172pwm_platid_param vrc4172pwm_platid_param_table[] = {
|
struct platid_data vrc4172pwm_platid_param_table[] = {
|
||||||
{ &platid_mask_MACH_NEC_MCR_530A,
|
{ &platid_mask_MACH_NEC_MCR_530A,
|
||||||
&vrc4172pwm_mcr530_param},
|
&vrc4172pwm_mcr530_param},
|
||||||
{ &platid_mask_MACH_NEC_MCR_SIGMARION,
|
{ &platid_mask_MACH_NEC_MCR_SIGMARION,
|
||||||
|
@ -211,11 +211,10 @@ vrc4172pwmattach(parent, self, aux)
|
||||||
struct vrc4172pwm_param *
|
struct vrc4172pwm_param *
|
||||||
vrc4172pwm_getparam()
|
vrc4172pwm_getparam()
|
||||||
{
|
{
|
||||||
struct vrc4172pwm_platid_param *p;
|
struct platid_data *p;
|
||||||
|
|
||||||
if ((p = (struct vrc4172pwm_platid_param *)
|
if ((p = platid_search(&platid, vrc4172pwm_platid_param_table)))
|
||||||
platid_search(&platid, (void *)vrc4172pwm_platid_param_table)))
|
return p->data;
|
||||||
return p->param;
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: vrc4172pwmvar.h,v 1.3 2000/12/29 11:44:44 sato Exp $ */
|
/* $Id: vrc4172pwmvar.h,v 1.4 2000/12/29 15:54:17 sato Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 SATO Kazumi. All rights reserved.
|
* Copyright (c) 2000 SATO Kazumi. All rights reserved.
|
||||||
|
@ -33,11 +33,6 @@ struct vrc4172pwm_param {
|
||||||
int values[VRC2_PWM_N_BRIGHTNESS];
|
int values[VRC2_PWM_N_BRIGHTNESS];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct vrc4172pwm_platid_param {
|
|
||||||
platid_mask_t *mask;
|
|
||||||
struct vrc4172pwm_param *param;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct vrc4172pwm_softc {
|
struct vrc4172pwm_softc {
|
||||||
struct device sc_dev;
|
struct device sc_dev;
|
||||||
bus_space_tag_t sc_iot;
|
bus_space_tag_t sc_iot;
|
||||||
|
|
Loading…
Reference in New Issue