Displaying 4 results from an estimated 4 matches for "get_drive_parameters".
2010 Apr 27
2
gpllib write_sectors() patch
...ed
size is wrong; size is in sectors so we should adjust the alloc/memcpy
by size*SECTOR.
Also, comparing core/diskio.c it looks like the registers aren't even
setup right.
In the patch below I put an #if 0 around the old code to demonstrate
how it differs
from diskio.c
I also added a call to get_drive_parameters() so that it would be like
the gpllib/read.c
However, it would probably be best to not have to call
get_drive_parameters every time
so they should be supplied in the driveinfo struct (for both read and write).
/**
* write_sectors - write several sectors from disk
@@ -37,9 +55,14 @@ int write_se...
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
..._pushstring((state), (key));\
+ lua_pushstring((state), (const char*) (value));\
+ lua_settable((state), -3);\
+} while(0);
+
+static int get_disks(lua_State* L) {
+ lua_newtable(L);
+ int i = 1;
+ for (int id = 0x80; id < 0xff; id++) {
+ struct driveinfo info = {
+ .disk = id,
+ };
+ if (get_drive_parameters(&info) == -1 // disk does not exist
+ || !info.cbios) { // is not an hdd (-> a cdrom or whatever)
+ continue;
+ }
+ lua_pushinteger(L, i);
+ lua_newtable(L);
+ SET_TABLE_STRING_INT(L, "id", id);
+ // legacy info
+ SET_TABLE_STRING_INT(L, "legacy_heads", info.l...
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...char *argv[] = { "ldlinux.c32", NULL };
diff --git a/com32/gpllib/disk/geom.c b/com32/gpllib/disk/geom.c
index 9e673ed..e109520 100644
--- a/com32/gpllib/disk/geom.c
+++ b/com32/gpllib/disk/geom.c
@@ -120,7 +120,7 @@ static int detect_extensions(struct driveinfo *drive_info)
static int get_drive_parameters_with_extensions(struct driveinfo *drive_info)
{
com32sys_t inreg, outreg;
- struct edd_device_parameters *dp = __com32.cs_bounce;
+ struct edd_device_parameters *dp;
memset(&inreg, 0, sizeof inreg);
@@ -134,6 +134,10 @@ static int get_drive_parameters_with_extensions(struct...
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and