static int do_add4pci(message *m);
static void add_range(u32_t busaddr, u32_t size);
static void del_range(u32_t busaddr, u32_t size);
-static int do_pm_notify(message *m);
+static void do_pm_notify(message *m);
static void report_exceptions(void);
/* SEF functions and variables. */
return(OK);
}
+/* Returns 0 if no device found, or 1 if a device is found. */
static int find_dev(devindp, capaddrp)
int *devindp;
u8_t *capaddrp;
if (!r)
{
printf("amddev`find_dev: no first dev\n");
- return;
+ return 0;
}
}
else
if (!r)
{
printf("amddev`find_dev: no next dev\n");
- return;
+ return 0;
}
}
}
}
-static int do_pm_notify(message *m)
+static void do_pm_notify(message *m)
{
int r;
endpoint_t proc_e;
special_file[3].write_chan = DAC2_CHAN;
special_file[3].read_chan = NO_CHANNEL;
special_file[3].io_ctl = DAC2_CHAN;
+
+ return OK;
}
int drv_stop(int sub_dev)
{
u32_t enable_bit;
+ int status;
switch(sub_dev) {
case ADC1_CHAN: enable_bit = ADC1_EN;break;
pci_outw(reg(CHIP_SEL_CTRL),
pci_inw(reg(CHIP_SEL_CTRL)) & ~enable_bit);
aud_conf[sub_dev].busy = 0;
- disable_int(sub_dev);
+ status = disable_int(sub_dev);
- return OK;
+ return status;
}
status = EINVAL; break;
}
- return OK;
+ return status;
}
/* clear the interrupt */
ser_interface = pci_inw(reg(SERIAL_INTERFACE_CTRL));
pci_outw(reg(SERIAL_INTERFACE_CTRL), ser_interface & ~int_en_bit);
+ return OK;
}
special_file[3].write_chan = DAC2_CHAN;
special_file[3].read_chan = NO_CHANNEL;
special_file[3].io_ctl = DAC2_CHAN;
+
+ return OK;
}
status = EINVAL; break;
}
- return OK;
+ return status;
}
/* clear the interrupt */
ser_interface = pci_inw(reg(SERIAL_INTERFACE_CTRL));
pci_outw(reg(SERIAL_INTERFACE_CTRL), ser_interface & ~int_en_bit);
+ return OK;
}
/* free the buffers */
free(sub_dev_ptr->DmaBuf);
free(sub_dev_ptr->ExtraBuf);
+ return OK;
}
special_file[2].write_chan = NO_CHANNEL;
special_file[2].read_chan = NO_CHANNEL;
special_file[2].io_ctl = MIXER;
+
+ return OK;
}