0001
0002
0003 #include <linux/module.h>
0004 #include <linux/pci.h>
0005 #include <asm/mmu.h>
0006 #include "ocxl_internal.h"
0007
0008 static int __init init_ocxl(void)
0009 {
0010 int rc = 0;
0011
0012 if (!tlbie_capable)
0013 return -EINVAL;
0014
0015 rc = ocxl_file_init();
0016 if (rc)
0017 return rc;
0018
0019 rc = pci_register_driver(&ocxl_pci_driver);
0020 if (rc) {
0021 ocxl_file_exit();
0022 return rc;
0023 }
0024 return 0;
0025 }
0026
0027 static void exit_ocxl(void)
0028 {
0029 pci_unregister_driver(&ocxl_pci_driver);
0030 ocxl_file_exit();
0031 }
0032
0033 module_init(init_ocxl);
0034 module_exit(exit_ocxl);
0035
0036 MODULE_DESCRIPTION("Open Coherent Accelerator");
0037 MODULE_LICENSE("GPL");