/** * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. * * This source file is released under GPL v2 license (no other versions). * See the COPYING file included in the main directory of this source * distribution for the license terms and conditions. * * @File cthardware.c * * @Brief * This file contains the implementation of hardware access methord. * * @Author Liu Chun * @Date Jun 26 2008 * */ #include "cthardware.h" #include "cthw20k1.h" #include "cthw20k2.h" #include <linux/bug.h>
int create_hw_obj(struct pci_dev *pci, enum CHIPTYP chip_type, enum CTCARDS model, struct hw **rhw) { int err; switch (chip_type) { case ATC20K1: err = create_20k1_hw_obj(rhw); break; case ATC20K2: err = create_20k2_hw_obj(rhw); break; default: err = -ENODEV; break; } if (err) return err; (*rhw)->pci = pci; (*rhw)->chip_type = chip_type; (*rhw)->model = model; return 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Wai Yew CHAY | 77 | 77.78% | 1 | 50.00% |
Takashi Iwai | 22 | 22.22% | 1 | 50.00% |
Total | 99 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wai Yew CHAY | 57 | 100.00% | 1 | 100.00% |
Total | 57 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wai Yew CHAY | 52 | 88.14% | 1 | 50.00% |
Takashi Iwai | 7 | 11.86% | 1 | 50.00% |
Total | 59 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wai Yew CHAY | 70 | 93.33% | 1 | 50.00% |
Takashi Iwai | 5 | 6.67% | 1 | 50.00% |
Total | 75 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wai Yew CHAY | 269 | 88.78% | 1 | 33.33% |
Takashi Iwai | 34 | 11.22% | 2 | 66.67% |
Total | 303 | 100.00% | 3 | 100.00% |