mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-03-29 14:42:43 +02:00
restructure and added stubs for vega10, vega20 and navi10
This commit is contained in:
21
src/amd/amd.h
Normal file
21
src/amd/amd.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Vendor Reset - Vendor Specific Reset
|
||||
Copyright (C) 2020 Geoffrey McRae <geoff@hostfission.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
Foundation; either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with
|
||||
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
extern struct vendor_reset_ops amd_vega10_ops;
|
||||
extern struct vendor_reset_ops amd_vega20_ops;
|
||||
extern struct vendor_reset_ops amd_navi10_ops;
|
||||
29
src/amd/navi10.c
Normal file
29
src/amd/navi10.c
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Vendor Reset - Vendor Specific Reset
|
||||
Copyright (C) 2020 Geoffrey McRae <geoff@hostfission.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
Foundation; either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with
|
||||
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "vendor-reset-dev.h"
|
||||
|
||||
static int amd_navi10_reset(struct pci_dev * dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct vendor_reset_ops amd_navi10_ops =
|
||||
{
|
||||
.reset = amd_navi10_reset
|
||||
};
|
||||
29
src/amd/vega10.c
Normal file
29
src/amd/vega10.c
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Vendor Reset - Vendor Specific Reset
|
||||
Copyright (C) 2020 Geoffrey McRae <geoff@hostfission.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
Foundation; either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with
|
||||
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "vendor-reset-dev.h"
|
||||
|
||||
static int amd_vega10_reset(struct pci_dev * dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct vendor_reset_ops amd_vega10_ops =
|
||||
{
|
||||
.reset = amd_vega10_reset
|
||||
};
|
||||
29
src/amd/vega20.c
Normal file
29
src/amd/vega20.c
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Vendor Reset - Vendor Specific Reset
|
||||
Copyright (C) 2020 Geoffrey McRae <geoff@hostfission.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
Foundation; either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with
|
||||
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "vendor-reset-dev.h"
|
||||
|
||||
static int amd_vega20_reset(struct pci_dev * dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct vendor_reset_ops amd_vega20_ops =
|
||||
{
|
||||
.reset = amd_vega20_reset
|
||||
};
|
||||
Reference in New Issue
Block a user