00001 /*************************************************************************** 00002 hd.c - description 00003 ------------------- 00004 begin : Sat Jan 31 2004 00005 copyright : (C) 2004 by Dynacube Team 00006 email : 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #include "dev/hd/hd.h" 00019 00020 00021 void hdtest() 00022 { 00023 printf("\nHD %x %b\n",inb(0x1F7)); 00024 outb(0x1F6,0xA0); 00025 printf("\nHD %x %b\n",inb(0x1F7)); 00026 }