!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/drivers/acpi/ospm/busmgr/   drwxr-xr-x
Free 318.29 GB of 458.09 GB (69.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     bmrequest.c (3.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/******************************************************************************
 *
 * Module Name: bmrequest.c
 *   $Revision: 16 $
 *
 *****************************************************************************/

/*
 *  Copyright (C) 2000, 2001 Andrew Grover
 *
 *  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 <acpi.h>
#include "bm.h"

#define _COMPONENT        ACPI_BUS
    MODULE_NAME        ("bmrequest")


/****************************************************************************
 *                            External Functions
 ****************************************************************************/

/****************************************************************************
 *
 * FUNCTION:    bm_generate_request
 *
 * PARAMETERS:
 *
 * RETURN:
 *
 * DESCRIPTION:
 *
 ****************************************************************************/

acpi_status
bm_generate_request (
    BM_NODE            *node,
    BM_REQUEST        *request)
{
    acpi_status             status = AE_OK;
    BM_DEVICE        *device = NULL;

    FUNCTION_TRACE("bm_generate_request");

    if (!node || !request) {
        return_ACPI_STATUS(AE_BAD_PARAMETER);
    }

    device = &(node->device);

    if (!BM_IS_DRIVER_CONTROL(device)) {
        ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "No driver installed for device [%02x].\n", device->handle));
        return_ACPI_STATUS(AE_NOT_EXIST);
    }

    status = node->driver.request(request, node->driver.context);

    return_ACPI_STATUS(status);
}


/****************************************************************************
 *
 * FUNCTION:    bm_request
 *
 * PARAMETERS:
 *
 * RETURN:
 *
 * DESCRIPTION:
 *
 ****************************************************************************/

acpi_status
bm_request (
    BM_REQUEST              *request)
{
    acpi_status             status = AE_OK;
    BM_NODE            *node = NULL;
    BM_DEVICE        *device = NULL;

    FUNCTION_TRACE("bm_request");

    /*
     * Must have a valid request structure.
     */
    if (!request) {
        return_ACPI_STATUS(AE_BAD_PARAMETER);
    }

    ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Received request for device [%02x] command [%02x].\n", request->handle, request->command));

    /*
     * Resolve the node.
     */
    status = bm_get_node(request->handle, 0, &node);
    if (ACPI_FAILURE(status)) {
        return_ACPI_STATUS(status);
    }

    device = &(node->device);

    /*
     * Device-Specific Request?
     * ------------------------
     * If a device-specific command (>=0x80) forward this request to
     * the appropriate driver.
     */
    if (request->command & BM_COMMAND_DEVICE_SPECIFIC) {
        status = bm_generate_request(node, request);
        return_ACPI_STATUS(status);
    }

    /*
     * Bus-Specific Requests:
     * ----------------------
     */
    switch (request->command) {

    case BM_COMMAND_GET_POWER_STATE:
        status = bm_get_power_state(node);
        if (ACPI_FAILURE(status)) {
            break;
        }
        status = bm_copy_to_buffer(&(request->buffer),
            &(device->power.state), sizeof(BM_POWER_STATE));
        break;

    case BM_COMMAND_SET_POWER_STATE:
     {
        BM_POWER_STATE *power_state = NULL;

        status = bm_cast_buffer(&(request->buffer),
            (void**)&power_state, sizeof(BM_POWER_STATE));
        if (ACPI_FAILURE(status)) {
            break;
        }
        status = bm_set_power_state(node, *power_state);
    }
        break;

    default:
        status = AE_SUPPORT;
        request->status = AE_SUPPORT;
        break;
    }

    return_ACPI_STATUS(status);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0131 ]--