// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. * * @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 destroy_hw_obj(struct hw *hw) { … } unsigned int get_field(unsigned int data, unsigned int field) { … } void set_field(unsigned int *data, unsigned int field, unsigned int value) { … }