1ba4e7d97SThomas Hellstrom /************************************************************************** 2ba4e7d97SThomas Hellstrom * 3ba4e7d97SThomas Hellstrom * Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA 4ba4e7d97SThomas Hellstrom * All Rights Reserved. 5ba4e7d97SThomas Hellstrom * 6ba4e7d97SThomas Hellstrom * Permission is hereby granted, free of charge, to any person obtaining a 7ba4e7d97SThomas Hellstrom * copy of this software and associated documentation files (the 8ba4e7d97SThomas Hellstrom * "Software"), to deal in the Software without restriction, including 9ba4e7d97SThomas Hellstrom * without limitation the rights to use, copy, modify, merge, publish, 10ba4e7d97SThomas Hellstrom * distribute, sub license, and/or sell copies of the Software, and to 11ba4e7d97SThomas Hellstrom * permit persons to whom the Software is furnished to do so, subject to 12ba4e7d97SThomas Hellstrom * the following conditions: 13ba4e7d97SThomas Hellstrom * 14ba4e7d97SThomas Hellstrom * The above copyright notice and this permission notice (including the 15ba4e7d97SThomas Hellstrom * next paragraph) shall be included in all copies or substantial portions 16ba4e7d97SThomas Hellstrom * of the Software. 17ba4e7d97SThomas Hellstrom * 18ba4e7d97SThomas Hellstrom * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19ba4e7d97SThomas Hellstrom * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20ba4e7d97SThomas Hellstrom * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 21ba4e7d97SThomas Hellstrom * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, 22ba4e7d97SThomas Hellstrom * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 23ba4e7d97SThomas Hellstrom * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 24ba4e7d97SThomas Hellstrom * USE OR OTHER DEALINGS IN THE SOFTWARE. 25ba4e7d97SThomas Hellstrom * 26ba4e7d97SThomas Hellstrom **************************************************************************/ 27ba4e7d97SThomas Hellstrom /* 28ba4e7d97SThomas Hellstrom * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 29ba4e7d97SThomas Hellstrom * Jerome Glisse 30ba4e7d97SThomas Hellstrom */ 31ba4e7d97SThomas Hellstrom #include <linux/module.h> 32ba4e7d97SThomas Hellstrom #include <ttm/ttm_module.h> 33ba4e7d97SThomas Hellstrom 34ba4e7d97SThomas Hellstrom static int __init ttm_init(void) 35ba4e7d97SThomas Hellstrom { 36ba4e7d97SThomas Hellstrom ttm_global_init(); 37ba4e7d97SThomas Hellstrom return 0; 38ba4e7d97SThomas Hellstrom } 39ba4e7d97SThomas Hellstrom 40ba4e7d97SThomas Hellstrom static void __exit ttm_exit(void) 41ba4e7d97SThomas Hellstrom { 42ba4e7d97SThomas Hellstrom ttm_global_release(); 43ba4e7d97SThomas Hellstrom } 44ba4e7d97SThomas Hellstrom 45ba4e7d97SThomas Hellstrom module_init(ttm_init); 46ba4e7d97SThomas Hellstrom module_exit(ttm_exit); 47ba4e7d97SThomas Hellstrom 48ba4e7d97SThomas Hellstrom MODULE_AUTHOR("Thomas Hellstrom, Jerome Glisse"); 49ba4e7d97SThomas Hellstrom MODULE_DESCRIPTION("TTM memory manager subsystem (for DRM device)"); 50ba4e7d97SThomas Hellstrom MODULE_LICENSE("GPL and additional rights"); 51