No functional changes. Code style violations fixes. Thanks to Axel for pointing out.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42664 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Siarzhuk Zharski 2011-08-21 16:56:16 +00:00
parent 4e7d39f00f
commit fab63078c9
2 changed files with 22 additions and 15 deletions

View File

@ -16,14 +16,24 @@
#include "if_dcreg.h"
int check_disable_interrupts_dc(device_t dev);
void reenable_interrupts_dc(device_t dev);
extern int check_disable_interrupts_de(device_t dev);
extern void reenable_interrupts_de(device_t dev);
HAIKU_FBSD_DRIVERS_GLUE(dec21xxx);
HAIKU_DRIVER_REQUIREMENTS(FBSD_TASKQUEUES | FBSD_FAST_TASKQUEUE | FBSD_SWI_TASKQUEUE);
extern driver_t *DRIVER_MODULE_NAME(dc, pci);
extern driver_t *DRIVER_MODULE_NAME(de, pci);
status_t __haiku_handle_fbsd_drivers_list(status_t (*handler)(driver_t *[]))
status_t
__haiku_handle_fbsd_drivers_list(status_t (*handler)(driver_t *[]))
{
driver_t *drivers[] = {
DRIVER_MODULE_NAME(dc, pci),
@ -33,6 +43,7 @@ status_t __haiku_handle_fbsd_drivers_list(status_t (*handler)(driver_t *[]))
return (*handler)(drivers);
}
extern driver_t *DRIVER_MODULE_NAME(acphy, miibus);
extern driver_t *DRIVER_MODULE_NAME(amphy, miibus);
extern driver_t *DRIVER_MODULE_NAME(dcphy, miibus);
@ -55,18 +66,11 @@ __haiku_select_miibus_driver(device_t dev)
}
int check_disable_interrupts_dc(device_t dev);
void reenable_interrupts_dc(device_t dev);
extern int check_disable_interrupts_de(device_t dev);
extern void reenable_interrupts_de(device_t dev);
int
HAIKU_CHECK_DISABLE_INTERRUPTS(device_t dev)
{
uint16 name = *(uint16*)dev->device_name;
switch(name) {
switch (name) {
case 'cd':
return check_disable_interrupts_dc(dev);
case 'ed':
@ -84,7 +88,7 @@ void
HAIKU_REENABLE_INTERRUPTS(device_t dev)
{
uint16 name = *(uint16*)dev->device_name;
switch(name) {
switch (name) {
case 'cd':
reenable_interrupts_dc(dev);
break;
@ -98,7 +102,8 @@ HAIKU_REENABLE_INTERRUPTS(device_t dev)
}
int check_disable_interrupts_dc(device_t dev)
int
check_disable_interrupts_dc(device_t dev)
{
struct dc_softc *sc = device_get_softc(dev);
uint16_t status;
@ -131,7 +136,8 @@ int check_disable_interrupts_dc(device_t dev)
}
void reenable_interrupts_dc(device_t dev)
void
reenable_interrupts_dc(device_t dev)
{
struct dc_softc *sc = device_get_softc(dev);
DC_LOCK(sc);

View File

@ -64,3 +64,4 @@ reenable_interrupts_de(device_t dev)
TULIP_CSR_WRITE(sc, csr_intr, sc->tulip_intrmask);
TULIP_UNLOCK(sc);
}