18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * ddbridge-hw.h: Digital Devices bridge hardware maps 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2010-2017 Digital Devices GmbH 68c2ecf20Sopenharmony_ci * Ralph Metzler <rjkm@metzlerbros.de> 78c2ecf20Sopenharmony_ci * Marcus Metzler <mocm@metzlerbros.de> 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or 108c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License 118c2ecf20Sopenharmony_ci * version 2 only, as published by the Free Software Foundation. 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful, 148c2ecf20Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 158c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 168c2ecf20Sopenharmony_ci * GNU General Public License for more details. 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#ifndef _DDBRIDGE_HW_H_ 208c2ecf20Sopenharmony_ci#define _DDBRIDGE_HW_H_ 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#include "ddbridge.h" 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/******************************************************************************/ 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#define DDVID 0xdd01 /* Digital Devices Vendor ID */ 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/******************************************************************************/ 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_cistruct ddb_device_id { 318c2ecf20Sopenharmony_ci u16 vendor; 328c2ecf20Sopenharmony_ci u16 device; 338c2ecf20Sopenharmony_ci u16 subvendor; 348c2ecf20Sopenharmony_ci u16 subdevice; 358c2ecf20Sopenharmony_ci const struct ddb_info *info; 368c2ecf20Sopenharmony_ci}; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci/******************************************************************************/ 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ciconst struct ddb_info *get_ddb_info(u16 vendor, u16 device, 418c2ecf20Sopenharmony_ci u16 subvendor, u16 subdevice); 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#endif /* _DDBRIDGE_HW_H */ 44