Revision: 316 Author: nieklinnenbank Date: Sun Aug 16 14:23:29 2009 Log: Implemented an draft version of the USB UHCI Host Controller Device. This current version does not do anything usefull yet. Now it only prints on the screen that the Device code is running. http://code.google.com/p/freenos/source/detail?r=316 Added: /trunk/srv/usb /trunk/srv/usb/SConscript /trunk/srv/usb/uhci /trunk/srv/usb/uhci/SConscript /trunk/srv/usb/uhci/UHCIController.cpp Modified: /trunk/srv/SConscript ======================================= --- /dev/null +++ /trunk/srv/usb/SConscript Sun Aug 16 14:23:29 2009 @@ -0,0 +1,18 @@ +# +# Copyright (C) 2009 Niek Linnenbank +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +SConscript(dirs = [ 'uhci' ]) ======================================= --- /dev/null +++ /trunk/srv/usb/uhci/SConscript Sun Aug 16 14:23:29 2009 @@ -0,0 +1,26 @@ +# +# Copyright (C) 2009 Niek Linnenbank +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +from build import * ++env = Prepare(target, [ 'libcrt', 'liballoc', 'libposix', 'libexec', 'libc' ],
+ [ 'log', 'filesystem', 'process', 'memory' ]) + +env.Program('server', [ 'UHCIController.cpp' ], + LIBS = env['LIBS'], LIBPATH = env['LIBPATH']) + +e = env.PCI('server', 0x8086, 0x7020) ======================================= --- /dev/null +++ /trunk/srv/usb/uhci/UHCIController.cpp Sun Aug 16 14:23:29 2009 @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2009 Niek Linnenbank + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include <stdlib.h> +#include <syslog.h> + +int main(int argc, char **argv) +{ + openlog("USB", LOG_PID | LOG_CONS, LOG_USER); + syslog(LOG_INFO, "UHCI Host Controller"); + closelog(); + + return EXIT_SUCCESS; +} ======================================= --- /trunk/srv/SConscript Mon Aug 3 14:38:28 2009 +++ /trunk/srv/SConscript Sun Aug 16 14:23:29 2009 @@ -15,5 +15,5 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -SConscript(dirs = [ 'log', 'idle', 'memory', 'pci', 'video', 'input',+SConscript(dirs = [ 'log', 'idle', 'memory', 'pci', 'usb', 'video', 'input',
'process', 'serial', 'terminal', 'time', 'filesystem' ])