1/* 2 * BeOS AC97 host interface driver for Intel Host Controllers (ICH) 3 * 4 * Implemented using the audio_module API 5 * 6 * Copyright (c) 2003, Marcus Overhagen <marcus@overhagen.de> 7 * 8 * All rights reserved. 9 * Redistribution only allowed under the terms of the MIT license. 10 * 11 */ 12 13#include <OS.h> 14#include <KernelExport.h> 15#include "audio_module.h" 16 17 18void print_hello_world(void) 19{ 20 dprintf("print_hello_world\n"); 21} 22 23 24// std_ops 25static 26status_t 27std_ops(int32 op, ...) 28{ 29 dprintf("ich: std_ops(0x%lx)\n", op); 30 switch(op) { 31 case B_MODULE_INIT: 32 case B_MODULE_UNINIT: 33 return B_OK; 34 } 35 return B_ERROR; 36} 37 38static 39void 40print_hello(void) 41{ 42 dprintf("print_hello\n"); 43} 44 45static audio_module_info audio_driver_module = 46{ 47 // module_info 48 { 49 "media/audio/ich", 50 0, 51 std_ops 52 }, 53 print_hello 54}; 55 56_EXPORT audio_module_info *modules[] = 57{ 58 &audio_driver_module, 59 NULL 60}; 61 62