diff options
author | Avik Sil <aviksil@linux.vnet.ibm.com> | 2013-09-23 14:07:36 +0530 |
---|---|---|
committer | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-10-04 12:01:06 +0530 |
commit | e5be30744ec9d6d8da26f112792e4b1d7187e2f5 (patch) | |
tree | b75059c794722ca67df17d6a6f17d47bcf1699ba /board-qemu/virtio-net/module_entry.c | |
parent | c9e1f76d10bb065e4ddd65b5150083428f90609b (diff) | |
download | SLOF-e5be30744ec9d6d8da26f112792e4b1d7187e2f5.zip SLOF-e5be30744ec9d6d8da26f112792e4b1d7187e2f5.tar.gz SLOF-e5be30744ec9d6d8da26f112792e4b1d7187e2f5.tar.bz2 |
Remove virtio-net network driver as module
The driver has been moved to libvirtio
Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'board-qemu/virtio-net/module_entry.c')
-rw-r--r-- | board-qemu/virtio-net/module_entry.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/board-qemu/virtio-net/module_entry.c b/board-qemu/virtio-net/module_entry.c deleted file mode 100644 index 2d2ca94..0000000 --- a/board-qemu/virtio-net/module_entry.c +++ /dev/null @@ -1,50 +0,0 @@ -/****************************************************************************** - * Copyright (c) 2004, 2011 IBM Corporation - * All rights reserved. - * This program and the accompanying materials - * are made available under the terms of the BSD License - * which accompanies this distribution, and is available at - * http://www.opensource.org/licenses/bsd-license.php - * - * Contributors: - * IBM Corporation - initial implementation - *****************************************************************************/ - -#include <string.h> -#include <netdriver_int.h> -#include "virtio-net.h" - -extern char __module_start[]; -extern char __module_end[]; -extern char __bss_start[]; -extern char __bss_end[]; - -snk_kernel_t *snk_kernel_interface; -snk_module_t *snk_module_interface; - - -snk_module_t* module_init(snk_kernel_t *snk_kernel_int, pci_config_t *conf) -{ - long module_size; - - module_size = __module_end - __module_start; - if (module_size >= 0x800000) { - snk_kernel_int->print("Module size (%llu bytes) is too big!\n", - module_size); - return 0; - } - - memset(__bss_start, 0, __bss_end - __bss_start); - - snk_kernel_interface = snk_kernel_int; - snk_module_interface = &virtionet_interface; - snk_module_interface->link_addr = module_init; - - if (snk_kernel_int->version != snk_module_interface->version) - return 0; - - if (vn_module_init_pci(snk_kernel_int, conf)) - return 0; - - return &virtionet_interface; -} |