pci_hda.h (6dc983494b0ffef2565cc4d91371ee345425ffab) pci_hda.h (4f3f3e9a1dee62c031fa67cfe64e11d6dd3fab1b)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2016 Alex Teaca <iateaca@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 56 unchanged lines hidden (view full) ---

65 uint8_t cad;
66 struct hda_codec_class *codec;
67 struct hda_softc *hda;
68 struct hda_ops *hops;
69 void *priv;
70};
71
72struct hda_codec_class {
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2016 Alex Teaca <iateaca@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 56 unchanged lines hidden (view full) ---

65 uint8_t cad;
66 struct hda_codec_class *codec;
67 struct hda_softc *hda;
68 struct hda_ops *hops;
69 void *priv;
70};
71
72struct hda_codec_class {
73 char *name;
73 const char *name;
74 int (*init)(struct hda_codec_inst *hci, const char *play,
75 const char *rec);
76 int (*reset)(struct hda_codec_inst *hci);
77 int (*command)(struct hda_codec_inst *hci, uint32_t cmd_data);
78 int (*notify)(struct hda_codec_inst *hci, uint8_t run, uint8_t stream,
79 uint8_t dir);
80};
81
82struct hda_ops {
83 int (*signal)(struct hda_codec_inst *hci);
84 int (*response)(struct hda_codec_inst *hci, uint32_t response,
85 uint8_t unsol);
86 int (*transfer)(struct hda_codec_inst *hci, uint8_t stream,
87 uint8_t dir, void *buf, size_t count);
88};
89
90#define HDA_EMUL_SET(x) DATA_SET(hda_codec_class_set, x);
91
92#endif /* _HDA_EMUL_H_ */
74 int (*init)(struct hda_codec_inst *hci, const char *play,
75 const char *rec);
76 int (*reset)(struct hda_codec_inst *hci);
77 int (*command)(struct hda_codec_inst *hci, uint32_t cmd_data);
78 int (*notify)(struct hda_codec_inst *hci, uint8_t run, uint8_t stream,
79 uint8_t dir);
80};
81
82struct hda_ops {
83 int (*signal)(struct hda_codec_inst *hci);
84 int (*response)(struct hda_codec_inst *hci, uint32_t response,
85 uint8_t unsol);
86 int (*transfer)(struct hda_codec_inst *hci, uint8_t stream,
87 uint8_t dir, void *buf, size_t count);
88};
89
90#define HDA_EMUL_SET(x) DATA_SET(hda_codec_class_set, x);
91
92#endif /* _HDA_EMUL_H_ */